Community
Participate
Working Groups
The suspicious semicolon checker has to distinguish if (condition) ; else statement; case from if (condition) ; It should be possible to not consider the first case suspicious while still issuing a warning for the second case. Assertion macros in the googletest framework (http://code.google.com/p/googletest/) are written using the first pattern.
fixed - added parameter to suppress the error in case "if" has "else" (it is not on by default, you have to set it )
*** cdt cvs genie on behalf of elaskavaia *** Bug 328532 - added parameter to suppress the error in case if has else [*] messages.properties 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/messages.properties?root=Tools_Project&r1=1.9&r2=1.10 [*] CheckersMessages.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.java?root=Tools_Project&r1=1.7&r2=1.8 [*] SuspiciousSemicolonChecker.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/SuspiciousSemicolonChecker.java?root=Tools_Project&r1=1.1&r2=1.2