View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009934KWStylepublic2009-11-20 13:292009-11-20 16:22
ReporterJean-Christophe Fillion-Robin 
Assigned ToJulien Jomier 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0009934: Function name starting with 'switch' cause indent error
DescriptionHeader 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




TagsNo tags attached.
Attached Files? file icon MyAwesomeBug.h [^] (725 bytes) 2009-11-20 13:29
? file icon MyAwesomeNoBug.h [^] (748 bytes) 2009-11-20 13:29
xml file icon MyAwesomeBug.kws.xml [^] (650 bytes) 2009-11-20 13:30

 Relationships

  Notes
(0018496)
Julien Jomier (manager)
2009-11-20 16:22

Fixed in SVN. Thanks for the report.

 Issue History
Date Modified Username Field Change
2009-11-20 13:29 Jean-Christophe Fillion-Robin New Issue
2009-11-20 13:29 Jean-Christophe Fillion-Robin File Added: MyAwesomeBug.h
2009-11-20 13:29 Jean-Christophe Fillion-Robin File Added: MyAwesomeNoBug.h
2009-11-20 13:30 Jean-Christophe Fillion-Robin File Added: MyAwesomeBug.kws.xml
2009-11-20 15:50 Julien Jomier Status new => assigned
2009-11-20 15:50 Julien Jomier Assigned To => Julien Jomier
2009-11-20 16:22 Julien Jomier Note Added: 0018496
2009-11-20 16:22 Julien Jomier Status assigned => resolved
2009-11-20 16:22 Julien Jomier Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team