| 1678 | } |
| 1679 | |
| 1680 | void 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 |
no test coverage detected