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

Method getErrorMessages

lib/checkstring.cpp:488–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void CheckString::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
489{
490 CheckStringImpl c(nullptr, settings, errorLogger);
491 c.stringLiteralWriteError(nullptr, nullptr);
492 c.sprintfOverlappingDataError(nullptr, nullptr, "varname");
493 c.strPlusCharError(nullptr);
494 c.incorrectStringCompareError(nullptr, "substr", "\"Hello World\"");
495 c.suspiciousStringCompareError(nullptr, "foo", false);
496 c.suspiciousStringCompareError_char(nullptr, "foo");
497 c.incorrectStringBooleanError(nullptr, "\"Hello World\"");
498 c.incorrectStringBooleanError(nullptr, "\'x\'");
499 c.alwaysTrueFalseStringCompareError(nullptr, "str1", "str2");
500 c.alwaysTrueStringVariableCompareError(nullptr, "varname1", "varname2");
501 c.overlappingStrcmpError(nullptr, nullptr);
502}

Callers

nothing calls this directly

Tested by

no test coverage detected