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

Method purgedConfigurationMessage

lib/cppcheck.cpp:1680–1698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1678}
1679
1680void CppCheck::purgedConfigurationMessage(const std::string &file, const std::string& configuration)
1681{
1682 if (mSettings.severity.isEnabled(Severity::information) && file.empty())
1683 return;
1684
1685 std::list<ErrorMessage::FileLocation> loclist;
1686 if (!file.empty()) {
1687 loclist.emplace_back(file, 0, 0);
1688 }
1689
1690 ErrorMessage errmsg(std::move(loclist),
1691 "",
1692 Severity::information,
1693 "The configuration '" + configuration + "' was not checked because its code equals another one.",
1694 "purgedConfiguration",
1695 Certainty::normal);
1696
1697 mErrorLogger.reportErr(errmsg);
1698}
1699
1700//---------------------------------------------------------------------------
1701

Callers 1

getErrorMessagesMethod · 0.80

Calls 3

isEnabledMethod · 0.45
emptyMethod · 0.45
reportErrMethod · 0.45

Tested by

no test coverage detected