Tokenizer: Refactoring. Merged two patterns into one pattern.
This commit is contained in:
parent
afcc28e9ee
commit
53fc0ca5e6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue