Revert "Change location of %op% operator in multicompare"

It's no longer needed with the proper fix for Token::Match().

This reverts commit 8b2adf1391.
This commit is contained in:
Thomas Jarosch 2013-01-09 16:56:40 +01:00
parent 7dd07d8e77
commit 33619de072
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ bool TemplateSimplifier::simplifyCalculations(Token *_tokens)
// keep parentheses here: operator new [] (size_t);
// keep parentheses here: Functor()(a ... )
// keep parentheses here: ) ( var ) ;
if (Token::Match(tok->next(), "( %var% ) %op%|;|)|,|]") &&
if (Token::Match(tok->next(), "( %var% ) ;|)|,|]|%op%") &&
!tok->isName() &&
tok->str() != ">" &&
tok->str() != "]" &&