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

Method getErrorMessages

lib/cppcheck.cpp:1702–1724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700//---------------------------------------------------------------------------
1701
1702void CppCheck::getErrorMessages(ErrorLogger &errorlogger)
1703{
1704 Settings settings;
1705 settings.templateFormat = "{callstack}: ({severity}) {inconclusive:inconclusive: }{message}"; // TODO: get rid of this
1706 Suppressions supprs;
1707
1708 CppCheck cppcheck(settings, supprs, errorlogger, nullptr, true, nullptr);
1709 cppcheck.purgedConfigurationMessage("","");
1710 cppcheck.tooManyConfigsError("",0U);
1711 // TODO: add functions to get remaining error messages
1712
1713 Settings s;
1714 s.addEnabled("all");
1715
1716 // call all "getErrorMessages" in all registered Check classes
1717 for (const Check * const c : CheckInstances::get())
1718 c->getErrorMessages(errorlogger, s);
1719
1720 CheckUnusedFunctions::getErrorMessages(errorlogger);
1721 Preprocessor::getErrorMessages(errorlogger, s);
1722 Tokenizer::getErrorMessages(errorlogger, s);
1723 SymbolDatabase::getErrorMessages(errorlogger);
1724}
1725
1726void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
1727{

Callers

nothing calls this directly

Calls 5

getErrorMessagesFunction · 0.85
tooManyConfigsErrorMethod · 0.80
addEnabledMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected