Merge pull request #658 from Dmitry-Me/omitMatchCall

Replace match call with explicit comparison
This commit is contained in:
orbitcowboy 2015-08-28 14:56:35 +02:00
commit b0f2351649
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}