projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4dd99
)
Extend CODING_STYLE with the if/else requirements
author
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 22 Jun 2015 21:45:36 +0000
(07:45 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 22 Jun 2015 21:45:36 +0000
(07:45 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
CODING_STYLE
patch
|
blob
|
history
diff --git
a/CODING_STYLE
b/CODING_STYLE
index
1a64ffe
..
3648a4e
100644
(file)
--- a/
CODING_STYLE
+++ b/
CODING_STYLE
@@
-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