[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
needed spacing options for gcc
From: |
Tom Tromey |
Subject: |
needed spacing options for gcc |
Date: |
Thu, 20 Dec 2007 09:55:48 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) |
I'm using GNU indent 2.2.9 on Fedora 8.
I'm investigating using indent to set the canonical style for GCC.
GCC uses the GNU coding style, but with a couple local tweaks. It
would be nice if indent supported these.
* GCC doesn't put a blank after unary operators, in particular "!".
So instead of: if (! foo), gcc would use if (!foo).
* GCC puts a space around the ":" in a bitfield declaration. So
instead of:
unsigned int field:1;
we use
unsigned int field : 1;
Tom
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- needed spacing options for gcc,
Tom Tromey <=