function usage: don't report "main" and "if" as unused
This commit is contained in:
parent
1db6c010e3
commit
f663d1da84
|
@ -148,6 +148,8 @@ void CheckFunctionUsage::check()
|
|||
const FunctionUsage &func = it->second;
|
||||
if (func.usedOtherFile || func.filename.empty())
|
||||
continue;
|
||||
if (it->first == "main" || it->first == "if")
|
||||
continue;
|
||||
if (! func.usedSameFile)
|
||||
{
|
||||
std::string filename;
|
||||
|
|
Loading…
Reference in New Issue