Fixed various false positives with --check-library (#6545, #6630)

This commit is contained in:
PKEuS 2015-10-26 08:16:50 +01:00
parent 116c10c7d6
commit f637b84192
1 changed files with 3 additions and 0 deletions

View File

@ -2584,6 +2584,9 @@ void CheckOther::checkLibraryMatchFunctions()
!Token::Match(tok, "for|if|while|switch|sizeof|catch|asm|return") &&
!tok->function() &&
!tok->varId() &&
!tok->type() &&
!tok->isStandardType() &&
tok->linkAt(1)->strAt(1) != "(" &&
tok->astParent() == tok->next() &&
_settings->library.isNotLibraryFunction(tok)) {
reportError(tok,