--check-library: less warnings

This commit is contained in:
Daniel Marjamäki 2017-04-22 21:23:46 +02:00
parent 429061b59d
commit e5b9e2a898
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ void CheckFunctions::checkLibraryMatchFunctions()
!tok->type() && !tok->type() &&
!tok->isStandardType() && !tok->isStandardType() &&
tok->linkAt(1)->strAt(1) != "(" && tok->linkAt(1)->strAt(1) != "(" &&
!Token::Match(tok->astParent(), "new") &&
tok->astParent() == tok->next() && tok->astParent() == tok->next() &&
_settings->library.isNotLibraryFunction(tok)) { _settings->library.isNotLibraryFunction(tok)) {
reportError(tok, reportError(tok,