Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

ENH: Check for spaces after commas, after (, and before ) #40

Closed aylward closed 8 years ago

aylward commented 8 years ago

Added two new features and associated tests.

1) Test for number of spaces after a , int a,b; versus int a, b; -- handled corner cases such as foo( a, b ) // is always allowed

2) Test for number of spaces after opening parenthesis '(' and before closing parenthesis ')' foo(a) versus foo( a ) -- handled corner cases, such as foo() // is always allowed foo( (i) ) and foo( ( i ) ) // and any other spacing involving nested parenthesis is allowed.