diff --git a/lib/checkers.cpp b/lib/checkers.cpp index da054e635e70..42520f7331f0 100644 --- a/lib/checkers.cpp +++ b/lib/checkers.cpp @@ -171,7 +171,7 @@ namespace checkers { {"CheckFunctions::useStandardLibrary","style"}, {"CheckVaarg::va_start_argument",""}, {"CheckVaarg::va_list_usage","notclang"}, - {"CheckUnusedFunctions::analyseWholeProgram","unusedFunctions"}, + {"CheckUnusedFunctions::check","unusedFunctions"}, {"CheckType::checkTooBigBitwiseShift","platform"}, {"CheckType::checkIntegerOverflow","platform"}, {"CheckType::checkSignConversion","warning"}, diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index 1926d0db2110..b5f410488f3a 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -377,9 +377,8 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Setting bool CheckUnusedFunctions::check(const Settings& settings, ErrorLogger &errorLogger) { - // TODO - //CheckUnusedFunctions dummy(nullptr, &settings, &errorLogger); - //dummy.logChecker("CheckUnusedFunctions::analyseWholeProgram"); + const ErrorMessage errmsg({}, nullptr, Severity::internal, "logChecker", "CheckUnusedFunctions::check", CWE(0U), Certainty::normal); + errorLogger.reportErr(errmsg); return instance.check(errorLogger, settings); }