mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
CODING_STYLE: add exception for for (int i=0, ...) declarations
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9d7f48b66a
commit
48d6861e74
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue