The Open Source PABX guidelines
http://svn.digium.com/view/asterisk/trunk/doc/CODING-GUIDELINES?view=markup
call for braces to be everywhere. The existing codebase has nearly everywhere
previously not required this. Creating a dilemma for modifying code.
- No nested statements without braces, e.g.:
for (x = 0; x < 5; x++)
if (foo)
if (bar)
baz();
instead do:
for (x = 0; x < 5; x++) {
if (foo) {
if (bar) {
baz();
}
}
}
Currently, 'indent -br' only moves an existing { to the same line as the IF,
any chnace of adding a parameter to insert missing braces?
Regards Alec Davis
_______________________________________________
bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent