Skip to content

Commit

Permalink
CheckUnusedFunctions: re-added logChecker message
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 18, 2024
1 parent 3f2d1d0 commit 4efc655
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", 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);
}

Expand Down

0 comments on commit 4efc655

Please sign in to comment.