only report on functions in --library files

This commit is contained in:
Jens Yllman 2020-06-18 11:42:07 +02:00
parent 51a6af299f
commit 9320ac287a
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ void CheckFunctions::checkLibraryMatchFunctions()
continue;
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;
reportError(tok,