Skip to content

Commit 911ecee

Browse files
committed
CheckUnusedFunctions: re-added logChecker message
1 parent 9036865 commit 911ecee

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/checkunusedfunctions.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,15 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Setting
375375
instance.parseTokens(tokenizer, tokenizer.list.getFiles().front().c_str(), settings);
376376
}
377377

378+
#define logChecker(id) \
379+
do { \
380+
const ErrorMessage errmsg({}, nullptr, Severity::internal, "logChecker", "CheckUnusedFunctions::check", CWE(0U), Certainty::normal); \
381+
errorLogger.reportErr(errmsg); \
382+
} while (false)
383+
378384
bool CheckUnusedFunctions::check(const Settings& settings, ErrorLogger &errorLogger)
379385
{
380-
// TODO
381-
//CheckUnusedFunctions dummy(nullptr, &settings, &errorLogger);
382-
//dummy.logChecker("CheckUnusedFunctions::analyseWholeProgram");
386+
logChecker("CheckUnusedFunctions::check"); // unusedFunction
383387
return instance.check(errorLogger, settings);
384388
}
385389

0 commit comments

Comments
 (0)