This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [doc RFA] Switch to GCC coding style [Re: [patch] initial OpenCL C language support]


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]