fix internal warning: [lib/valueflow.cpp:722]: (warning) Found simple pattern inside Token::Match() call: "if ("
This commit is contained in:
parent
5d9f275ff8
commit
11be3a9265
|
@ -719,7 +719,7 @@ static void valueFlowOppositeCondition(SymbolDatabase *symboldatabase, const Set
|
|||
if (scope->type != Scope::eIf)
|
||||
continue;
|
||||
Token *tok = const_cast<Token *>(scope->classDef);
|
||||
if (!Token::Match(tok, "if ("))
|
||||
if (!Token::simpleMatch(tok, "if ("))
|
||||
continue;
|
||||
const Token *cond1 = tok->next()->astOperand2();
|
||||
if (!cond1 || !cond1->isComparisonOp())
|
||||
|
|
Loading…
Reference in New Issue