From 11be3a92653ee2d1e4c74520ac061a5f4f9616a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 30 Jan 2016 20:34:33 +0100 Subject: [PATCH] fix internal warning: [lib/valueflow.cpp:722]: (warning) Found simple pattern inside Token::Match() call: "if (" --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 29b06c996..7863d98cd 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -719,7 +719,7 @@ static void valueFlowOppositeCondition(SymbolDatabase *symboldatabase, const Set if (scope->type != Scope::eIf) continue; Token *tok = const_cast(scope->classDef); - if (!Token::Match(tok, "if (")) + if (!Token::simpleMatch(tok, "if (")) continue; const Token *cond1 = tok->next()->astOperand2(); if (!cond1 || !cond1->isComparisonOp())