needed spacing options for gcc

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.