From bae95b4560d29c7065d58de8d458de0bec56418d Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 21 Feb 2015 12:38:13 +0100 Subject: [PATCH] Fixed noise in CheckOther::checkLibraryMatchFunctions(). --- lib/checkother.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index fbb4bcb87..8c1a4560b 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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,