mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-26 03:27:18 +00:00
gdb/doc/
* gdbint.texinfo (Coding Standards): Require braces for two lines of code.
This commit is contained in:
parent
687be931eb
commit
0ee339bc47
@ -1,3 +1,9 @@
|
||||
2012-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* gdbint.texinfo (Coding Standards): Require braces for two lines of
|
||||
code.
|
||||
|
||||
2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
|
||||
|
||||
* gdb.texinfo (Variables): Document use of :: for non-static
|
||||
|
@ -5849,6 +5849,26 @@ the following guidelines:
|
||||
@tab (pointer dereference)
|
||||
@end multitable
|
||||
|
||||
Any two or more lines in code should be wrapped in braces, even if
|
||||
they are comments, as they look like separate statements:
|
||||
|
||||
@smallexample
|
||||
if (i)
|
||||
@{
|
||||
/* Return success. */
|
||||
return 0;
|
||||
@}
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
and not:
|
||||
|
||||
@smallexample
|
||||
if (i)
|
||||
/* Return success. */
|
||||
return 0;
|
||||
@end smallexample
|
||||
|
||||
@subsection Comments
|
||||
|
||||
@cindex comment formatting
|
||||
|
Loading…
x
Reference in New Issue
Block a user