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:
Peter Hutterer 2018-03-23 10:17:26 +10:00
parent 9d7f48b66a
commit 48d6861e74

View file

@ -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;