From 77137a505adc161b422b1efa7af8c5af4956bb7a Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 16 Jan 2024 02:14:42 +0100 Subject: [PATCH] CheckUnusedFunctions: re-added `logChecker` message [skip ci] --- lib/checkunusedfunctions.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index 1926d0db2110..ed7c24387df1 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -375,11 +375,15 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Setting instance.parseTokens(tokenizer, tokenizer.list.getFiles().front().c_str(), settings); } +#define logChecker(id) \ + do { \ + const ErrorMessage errmsg({}, nullptr, Severity::internal, "logChecker", id, CWE(0U), Certainty::normal); \ + errorLogger.reportErr(errmsg); \ + } while (false) + bool CheckUnusedFunctions::check(const Settings& settings, ErrorLogger &errorLogger) { - // TODO - //CheckUnusedFunctions dummy(nullptr, &settings, &errorLogger); - //dummy.logChecker("CheckUnusedFunctions::analyseWholeProgram"); + logChecker("CheckUnusedFunctions::check"); // unusedFunction return instance.check(errorLogger, settings); }