There are 2 reasons to remove strcasecmp and strncasecmp.
- They are also modeled in CStringChecker and the related argumentum contraints are checked there.
- The argument constraints are checked in CStringChecker::evalCall. This is fundamentally flawed, they should be checked in checkPreCall. Even if we set up CStringChecker as a weak dependency for StdLibraryFunctionsChecker then the latter reports the warning always. Besides, CStringChecker fails to discover the constraint violation before the call, so, its evalCall returns with true and then StdCLibraryFunctions also tries to evaluate, this causes an assertion in CheckerManager.
Either we fix CStringChecker to handle the call prerequisites in
checkPreCall, or we must not evaluate any pure functions in
StdCLibraryFunctions that are also handled in CStringChecker.
We do the latter in this patch.
I'm not sure if this is required.