diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-03-23 10:17:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-03-23 10:32:30 +1000 |
commit | 48d6861e7436f4580bc247a82f5a3b99d566fd7c (patch) | |
tree | 7efce43908163009020678610090fa3375eefd47 | |
parent | 9d7f48b66aad8f985212ca3f6e31fc6e84caee90 (diff) |
CODING_STYLE: add exception for for (int i=0, ...) declarations
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | CODING_STYLE | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE index c5336cc0..3378bd36 100644 --- 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; |