Skip to content

Commit

Permalink
Tweaked the --check-library output so configured methods will not be …
Browse files Browse the repository at this point in the history
…shown
  • Loading branch information
danmar committed Oct 10, 2017
1 parent fcba5b8 commit abc3779
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/checkfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,13 @@ void CheckFunctions::checkLibraryMatchFunctions()
if (!_settings->library.isNotLibraryFunction(tok))
continue;

const std::string &functionName = _settings->library.getFunctionName(tok);
if (functionName.empty() || _settings->library.functions.find(functionName) != _settings->library.functions.end())
continue;

reportError(tok,
Severity::information,
"checkLibraryFunction",
"--check-library: There is no matching configuration for function " + _settings->library.getFunctionName(tok) + "()");
"--check-library: There is no matching configuration for function " + functionName + "()");
}
}

0 comments on commit abc3779

Please sign in to comment.