#213 One variable declaration per statement

release_3.4
closed
Check (274)
5
2012-10-10
2003-06-13
Tim Tyler
No

The idea is to issue warnings on finding things like
"int foo, bar;" - so they can be replaced by:
"int foo;
int bar;"

I've written this check - as follows:

<module name="MultipleVariableDeclarations"/>

``Checks that each variable declaration is in its own
statement''

Discussion

  • Logged In: YES
    user_id=746148

    Committed to CVS for 3.4
    module MultipleVariableDeclarations