fix [lib/checkfunctions.cpp:300]: (warning) Found simple pattern inside Token::Match() call: "new"
This commit is contained in:
parent
eaaf6268a9
commit
2744a9456f
|
@ -297,7 +297,7 @@ void CheckFunctions::checkLibraryMatchFunctions()
|
|||
!tok->type() &&
|
||||
!tok->isStandardType() &&
|
||||
tok->linkAt(1)->strAt(1) != "(" &&
|
||||
!Token::Match(tok->astParent(), "new") &&
|
||||
!Token::simpleMatch(tok->astParent(), "new") &&
|
||||
tok->astParent() == tok->next() &&
|
||||
_settings->library.isNotLibraryFunction(tok)) {
|
||||
reportError(tok,
|
||||
|
|
Loading…
Reference in New Issue