MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / incorrectStringCompareError

Method incorrectStringCompareError

lib/checkstring.cpp:324–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void CheckStringImpl::incorrectStringCompareError(const Token *tok, const std::string& func, const std::string &string)
325{
326 reportError(tok, Severity::warning, "incorrectStringCompare", "$symbol:" + func + "\nString literal " + string + " doesn't match length argument for $symbol().", CWE570, Certainty::normal);
327}
328
329void CheckStringImpl::incorrectStringBooleanError(const Token *tok, const std::string& string)
330{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected