| 1657 | } |
| 1658 | |
| 1659 | void 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 | |
| 1680 | void CppCheck::purgedConfigurationMessage(const std::string &file, const std::string& configuration) |
| 1681 | { |
no test coverage detected