Replace match call with explicit comparison
This commit is contained in:
parent
966be8f555
commit
81613d958a
|
@ -784,7 +784,7 @@ static void valueFlowReverse(TokenList *tokenlist,
|
|||
if (!var->isLocal()) {
|
||||
if (!Token::Match(tok2->previous(), ")|else|do {"))
|
||||
break;
|
||||
if (Token::simpleMatch(tok2->previous(), ") {") &&
|
||||
if ((tok2->previous()->str() == ")") &&
|
||||
!Token::Match(tok2->linkAt(-1)->previous(), "if|for|while ("))
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue