Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* ARI/Commit rules
@ 2011-06-15 11:56 Phil Muldoon
  2011-06-15 15:25 ` Joel Brobecker
  2011-06-15 18:03 ` Alfred M. Szmidt
  0 siblings, 2 replies; 9+ messages in thread
From: Phil Muldoon @ 2011-06-15 11:56 UTC (permalink / raw)
  To: gdb


I was writing a patch today, and I once again arrived at the: "Should I
use X or Y for this operation" dilemma.  There are a lot of unwritten
rules about programming usage in GDB (See ARI mails), and sometimes
maintainers don't catch them.  This is inevitable with a project this
size and age.  I have come to fear the post-commit ARI warnings ;)

This lead me to think, is it possible to distil this post-commit hook
script to a user installable script somewhere?  If GDB used git as the
primary repository we could just make it a pre-commit hook, and a user
script would not be needed.  But as GDB uses CVS I do not think
this is possible.

This would help ease the reviewing load.  We could put a link to the
script in the contributors guide, and a "RUN THIS FIRST" preamble.

Also we could perhaps encode some formatting rules in there as well.
Blank line after variable decl, two spaces after a period, space
in-between function and brackets, etc etc.  These nits always trip me up.

What do you think?

Cheers

Phil


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-16 11:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 11:56 ARI/Commit rules Phil Muldoon
2011-06-15 15:25 ` Joel Brobecker
2011-06-15 15:37   ` Phil Muldoon
2011-06-15 15:47     ` Joel Brobecker
2011-06-15 16:39     ` Pedro Alves
2011-06-15 16:48       ` Joel Brobecker
2011-06-15 17:00         ` Pedro Alves
2011-06-15 18:03 ` Alfred M. Szmidt
2011-06-16 11:45   ` Pierre Muller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox