This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: GDB: Coding style.


>>>>> "Brendan" == Brendan Simon <brendan@dgs.monash.edu.au> writes:
Brendan> Could CVS run indent on the server before the file is checked
Brendan> in.  I think cvs-wrappers can do this kind of stuff.  I'm not
Brendan> sure what other implications there are.

One of the problems with indent is that it's not perfect.  I
oftentimes have to tweak comments that have been mis-formated (usually
when I have hand-formatted a table or diagram).  I've also encountered
problems with nested preprocessor conditionals where spurious white-
space is introduced.  Hopefully once everything is reformated there
will not be much format drift.  As long as those checking patches in
either outright reject mal-formatted patches or take the time to re-
format as appropriate, the tendency for drift should be checked.

	--jtc

-- 
J.T. Conklin
RedBack Networks