This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [doc RFA] Switch to GCC coding style [Re: [patch] initial OpenCL C language support]
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, Mark Kettenis <mark dot kettenis at xs4all dot nl>, jan dot kratochvil at redhat dot com, eliz at gnu dot org, dje at google dot com, ken at linux dot vnet dot ibm dot com, tromey at redhat dot com
- Date: Mon, 8 Nov 2010 10:36:00 -0800
- Subject: Re: [doc RFA] Switch to GCC coding style [Re: [patch] initial OpenCL C language support]
- References: <201010221920.30046.ken@linux.vnet.ibm.com> <20101108161121.GA2933@adacore.com> <201011081638.oA8GciFV005540@glazunov.sibelius.xs4all.nl> <201011081654.16724.pedro@codesourcery.com>
> Currently, the "C Coding Standards" section in gdbint.exp reads:
[...]
> by just saying that the recommendations must be followed strictly, and
> and a sentence saying something to the effect of "the following list of extra
> GDB specific rules apply" (the ones I quoted from GCC earlier):
>
> Code in GDB should use the following formatting conventions:
> Use... ...instead of
> !x ! x
> ~x ~ x
> -x (unary minus) - x
> (foo) x (cast) (foo)x
> *x (pointer dereference) * x
>
> This is all I was suggesting before. Really.
That works for me, at least as a first step.
We're fragmented between gdbint and Wiki in terms of documentation.
But, somehow, it seems more natural to me to have the coding conventions
available on the Wiki (for one thing, it would allow a hyperlink to
the GCS, which is not available right now when you read this section
in gdbint).
--
Joel