Tokenizer: Refactoring. Merged two patterns into one pattern.

This commit is contained in:
Daniel Marjamäki 2010-11-06 15:55:37 +01:00
parent afcc28e9ee
commit 53fc0ca5e6
1 changed files with 1 additions and 2 deletions

View File

@ -6033,8 +6033,7 @@ bool Tokenizer::simplifyKnownVariables()
if (((tok3->previous()->varId() > 0) && Token::Match(tok3, "& %varid%", varid)) ||
Token::Match(tok3, "[=+-*/[] %varid% [=?+-*/;])]", varid) ||
Token::Match(tok3, "[(=+-*/[] %varid% <<|>>", varid) ||
Token::Match(tok3, "<< %varid% [+-*/;])]", varid) ||
Token::Match(tok3, ">> %varid% [+-*/;])]", varid) ||
Token::Match(tok3, "<<|>> %varid% [+-*/;])]", varid) ||
Token::Match(tok3->previous(), "[=+-*/[] ( %varid%", varid))
{
tok3 = tok3->next();