Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#531 MultipleVariableDeclarations: filter warnings in 'for' block

closed
Oliver Burn
None
5
2015-04-11
2009-11-11
Hollis Waite
No

Multiple declarations within a 'for' statement is the cleanest way to minimize scope of a variable that must persist throughout multiple loops. The 'MultipleVariableDeclarations' check should allow filtering of warnings for this idiom.

Example:
for (int i = 0, j = 1; i < 10; i++)

Discussion

  • Oliver Burn
    Oliver Burn
    2011-01-01

    been implemented in 5.4 release.