From 2744a9456fc091d46aae86f4137d4d14d1381daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 22 Apr 2017 21:53:31 +0200 Subject: [PATCH] fix [lib/checkfunctions.cpp:300]: (warning) Found simple pattern inside Token::Match() call: "new" --- lib/checkfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 7acbdfe53..de7f8968b 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -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,