| 1700 | //--------------------------------------------------------------------------- |
| 1701 | |
| 1702 | void 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 | |
| 1726 | void CppCheck::analyseClangTidy(const FileSettings &fileSettings) |
| 1727 | { |
nothing calls this directly
no test coverage detected