--check-library: less warnings
This commit is contained in:
parent
429061b59d
commit
e5b9e2a898
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue