Tokenizer(simplifyComma): join two if bodies to one.

No functional change.
This commit is contained in:
Slava Semushin 2009-08-29 16:48:44 +07:00
parent ae413a1ef0
commit d6017756f4
1 changed files with 2 additions and 10 deletions

View File

@ -3567,16 +3567,8 @@ bool Tokenizer::simplifyComma()
bool ret = false;
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (Token::simpleMatch(tok, "for ("))
{
tok = tok->next()->link();
if (!tok)
break;
continue;
}
if (Token::Match(tok, "=|enum {"))
if (Token::simpleMatch(tok, "for (") ||
Token::Match(tok, "=|enum {"))
{
tok = tok->next()->link();
if (!tok)