Extend CODING_STYLE with the if/else requirements

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-06-23 07:45:36 +10:00
parent 1f4dd9985a
commit f3d6fdae84

View file

@ -62,6 +62,17 @@
useit(c);
}
- if/else: { on the same line, no curly braces if both blocks are a single
statement. If either if or else block are multiple statements, both must
have curly braces.
if (foo) {
blah();
bar();
} else {
a = 10;
}
- public functions MUST be doxygen-commented, use doxygen's @foo rather than
\foo notation