From 48d6861e7436f4580bc247a82f5a3b99d566fd7c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 23 Mar 2018 10:17:26 +1000 Subject: [PATCH] CODING_STYLE: add exception for for (int i=0, ...) declarations Signed-off-by: Peter Hutterer --- CODING_STYLE | 1 + 1 file changed, 1 insertion(+) 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;