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

Method tooManyConfigsError

lib/cppcheck.cpp:1659–1678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659void CppCheck::tooManyConfigsError(const std::string &file, const int numberOfConfigurations)
1660{
1661 std::list<ErrorMessage::FileLocation> loclist;
1662 if (!file.empty()) {
1663 loclist.emplace_back(file, 0, 0);
1664 }
1665
1666 std::ostringstream msg;
1667 msg << "Too many #ifdef configurations - cppcheck only checks " << mSettings.getMaxConfigs()
1668 << " of " << numberOfConfigurations << " configurations. Use --force to check all configurations.";
1669
1670 ErrorMessage errmsg(std::move(loclist),
1671 "",
1672 Severity::information,
1673 msg.str(),
1674 "toomanyconfigs", CWE398,
1675 Certainty::normal);
1676
1677 mErrorLogger.reportErr(errmsg);
1678}
1679
1680void CppCheck::purgedConfigurationMessage(const std::string &file, const std::string& configuration)
1681{

Callers 1

getErrorMessagesMethod · 0.80

Calls 3

emptyMethod · 0.45
strMethod · 0.45
reportErrMethod · 0.45

Tested by

no test coverage detected