MantisBT - KWStyle
View Issue Details
0009934KWStylepublic2009-11-20 13:292009-11-20 16:22
Jean-Christophe Fillion-Robin 
Julien Jomier 
normalmajoralways
resolvedfixed 
0009934: Function name starting with 'switch' cause indent error
Header file MyAwesomeBug.h and corresponding xml config file MyAwesomeBug.kws.xml illsutrates the problem.

Use the following command:
KWStyle -v -xml MyAwesomeBug.kws.xml MyAwesomeBug.h

Give the following error whereas it shouldn't.

KWStyle -v -xml MyAwesomeBug.kws.xml MyAwesomeBug.h
Processing MyAwesomeBug.h
Error 0000012 (40) Special Indent is wrong 4 (should be 2)
Error 0000012 (42) Indent is wrong 2 (should be 0)
Error 0000012 (43) Indent is wrong 4 (should be 2)
Error 0000012 (44) Indent is wrong 4 (should be 2)
Error 0000012 (45) Indent is wrong 4 (should be 2)
Error 0000012 (47) Special Indent is wrong 0 (should be -2)

The, as expected, renaming the function 'switchToMyAwesomeBug' to 'sXwitchToMyAwesomeBug' doesn't return any error. (also renamed the ifdef, the classname, constructor etc ... to match the filename)

KWStyle -v -xml MyAwesomeBug.kws.xml MyAwesomeNoBug.h




No tags attached.
? MyAwesomeBug.h (725) 2009-11-20 13:29
https://public.kitware.com/Bug/file/2668/MyAwesomeBug.h
? MyAwesomeNoBug.h (748) 2009-11-20 13:29
https://public.kitware.com/Bug/file/2669/MyAwesomeNoBug.h
xml MyAwesomeBug.kws.xml (650) 2009-11-20 13:30
https://public.kitware.com/Bug/file/2670/MyAwesomeBug.kws.xml
Issue History
2009-11-20 13:29Jean-Christophe Fillion-RobinNew Issue
2009-11-20 13:29Jean-Christophe Fillion-RobinFile Added: MyAwesomeBug.h
2009-11-20 13:29Jean-Christophe Fillion-RobinFile Added: MyAwesomeNoBug.h
2009-11-20 13:30Jean-Christophe Fillion-RobinFile Added: MyAwesomeBug.kws.xml
2009-11-20 15:50Julien JomierStatusnew => assigned
2009-11-20 15:50Julien JomierAssigned To => Julien Jomier
2009-11-20 16:22Julien JomierNote Added: 0018496
2009-11-20 16:22Julien JomierStatusassigned => resolved
2009-11-20 16:22Julien JomierResolutionopen => fixed

Notes
(0018496)
Julien Jomier   
2009-11-20 16:22   
Fixed in SVN. Thanks for the report.