diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 75bd18c46..5f9e5d45c 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -436,11 +436,14 @@ void CheckFunctions::checkLibraryMatchFunctions() if (tok->linkAt(1)->strAt(1) == "(") continue; + if (tok->function()) + continue; + if (!mSettings->library.isNotLibraryFunction(tok)) 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,