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 6028e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/checkers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
5 changes: 2 additions & 3 deletions lib/checkunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6028e33

Please sign in to comment.