Skip to content

Commit 11be3a9

Browse files
committed
fix internal warning: [lib/valueflow.cpp:722]: (warning) Found simple pattern inside Token::Match() call: "if ("
1 parent 5d9f275 commit 11be3a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static void valueFlowOppositeCondition(SymbolDatabase *symboldatabase, const Set
719719
if (scope->type != Scope::eIf)
720720
continue;
721721
Token *tok = const_cast<Token *>(scope->classDef);
722-
if (!Token::Match(tok, "if ("))
722+
if (!Token::simpleMatch(tok, "if ("))
723723
continue;
724724
const Token *cond1 = tok->next()->astOperand2();
725725
if (!cond1 || !cond1->isComparisonOp())

0 commit comments

Comments
 (0)