do not report locally declared functions as missing configuration for --check-library
This commit is contained in:
parent
9320ac287a
commit
08b0fa21a7
|
@ -436,11 +436,14 @@ void CheckFunctions::checkLibraryMatchFunctions()
|
||||||
if (tok->linkAt(1)->strAt(1) == "(")
|
if (tok->linkAt(1)->strAt(1) == "(")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (tok->function())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!mSettings->library.isNotLibraryFunction(tok))
|
if (!mSettings->library.isNotLibraryFunction(tok))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const std::string &functionName = mSettings->library.getFunctionName(tok);
|
const std::string &functionName = mSettings->library.getFunctionName(tok);
|
||||||
if (functionName.empty() || mSettings->library.functions.find(functionName) == mSettings->library.functions.end())
|
if (functionName.empty() || mSettings->library.functions.find(functionName) != mSettings->library.functions.end())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
reportError(tok,
|
reportError(tok,
|
||||||
|
|
Loading…
Reference in New Issue