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:
9d7f48b
)
CODING_STYLE: add exception for for (int i=0, ...) declarations
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 23 Mar 2018 00:17:26 +0000
(10:17 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 23 Mar 2018 00:32:30 +0000
(10:32 +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 c5336cc0159202049d395b6c2647a3be2b094faf..3378bd365746e6b5e9928d75ad928fa5ee38c4b9 100644
(file)
--- a/
CODING_STYLE
+++ b/
CODING_STYLE
@@
-46,6
+46,7
@@
- declare variables at the top, try to keep them as local as possible.
Exception: if the same variable is re-used in multiple blocks, declare it
at the top.
+ Exception: basic loop variables, e.g. for (int i = 0; ...)
int a;
int c;