Fixed noise in CheckOther::checkLibraryMatchFunctions().

This commit is contained in:
PKEuS 2015-02-21 12:38:13 +01:00
parent e02caea025
commit bae95b4560
1 changed files with 2 additions and 0 deletions

View File

@ -2750,7 +2750,9 @@ void CheckOther::checkLibraryMatchFunctions()
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
if (Token::Match(tok, "%name% (") &&
!Token::Match(tok, "for|if|while|switch|sizeof|catch|asm|return") &&
!tok->function() &&
!tok->varId() &&
tok->astParent() == tok->next() &&
_settings->library.isNotLibraryFunction(tok)) {
reportError(tok,