CODING_STYLE: add exception for for (int i=0, ...) declarations
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 23 Mar 2018 00:17:26 +0000 (10:17 +1000)
committerPeter 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

index c5336cc..3378bd3 100644 (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;