Skip to content

Commit 77ceb11

Browse files
committed
Merge branch 'jc/coding-guidelines-decl-in-for-loop'
Coding Guidelines clarification. * jc/coding-guidelines-decl-in-for-loop: CodingGuidelines: give deadline for "for (int i = 0; ..."
2 parents 909d5b6 + 6563706 commit 77ceb11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/CodingGuidelines

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ For C programs:
227227
the first statement (i.e. -Wdeclaration-after-statement).
228228

229229
- Declaring a variable in the for loop "for (int i = 0; i < 10; i++)"
230-
is still not allowed in this codebase.
230+
is still not allowed in this codebase. We are in the process of
231+
allowing it by waiting to see that 44ba10d6 (revision: use C99
232+
declaration of variable in for() loop, 2021-11-14) does not get
233+
complaints. Let's revisit this around November 2022.
231234

232235
- NULL pointers shall be written as NULL, not as 0.
233236

0 commit comments

Comments
 (0)