Skip to content

Commit

Permalink
CheckUnusedFunctions: re-added logChecker message [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 16, 2024
1 parent 6952539 commit 2c01f6e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/checkunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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", "CheckUnusedFunctions::check", 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);
}

Expand Down

0 comments on commit 2c01f6e

Please sign in to comment.