Fixed noise in CheckOther::checkLibraryMatchFunctions().
This commit is contained in:
parent
e02caea025
commit
bae95b4560
|
@ -2750,7 +2750,9 @@ void CheckOther::checkLibraryMatchFunctions()
|
||||||
|
|
||||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
|
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
|
||||||
if (Token::Match(tok, "%name% (") &&
|
if (Token::Match(tok, "%name% (") &&
|
||||||
|
!Token::Match(tok, "for|if|while|switch|sizeof|catch|asm|return") &&
|
||||||
!tok->function() &&
|
!tok->function() &&
|
||||||
|
!tok->varId() &&
|
||||||
tok->astParent() == tok->next() &&
|
tok->astParent() == tok->next() &&
|
||||||
_settings->library.isNotLibraryFunction(tok)) {
|
_settings->library.isNotLibraryFunction(tok)) {
|
||||||
reportError(tok,
|
reportError(tok,
|
||||||
|
|
Loading…
Reference in New Issue