Community
Participate
Working Groups
To reproduce bug just create new class for example PrivilegeElevateUid. Usually name of class has to start from upper case letter. Codan is not smart enough to skip constructor and destructor during validation So I see impossible to fix info messages: Bad function name "PrivilegeElevateUid::~PrivilegeElevateUid" (pattern /^[a-z]/) PrivilegeElevateUid.cpp /br_REL-101210/src/com/lowes/ss/utility/ procUtils line 14 Code Analysis Problem Bad function name "PrivilegeElevateUid::PrivilegeElevateUid" (pattern /^[a-z]/) PrivilegeElevateUid.cpp /br_REL-101210/src/com/lowes/ss/utility/procUtils line 8 Code Analysis Problem
It is not just that, the "function" name it is using contains class name for some reason, meaning it would mark all the methods
fixed. Also added checker parameter to check for method names (vs c functions only)
*** cdt cvs genie on behalf of elaskavaia *** Bug 327710 convinience method [*] AbstractCheckerWithProblemPreferences.java 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java?root=Tools_Project&r1=1.6&r2=1.7 [*] NamingConventionFunctionChecker.java 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/NamingConventionFunctionChecker.java?root=Tools_Project&r1=1.9&r2=1.10
In the isFilteredArg javadoc : argumnet -> argument.