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:
parent
7dd07d8e77
commit
33619de072
|
@ -793,7 +793,7 @@ bool TemplateSimplifier::simplifyCalculations(Token *_tokens)
|
||||||
// keep parentheses here: operator new [] (size_t);
|
// keep parentheses here: operator new [] (size_t);
|
||||||
// keep parentheses here: Functor()(a ... )
|
// keep parentheses here: Functor()(a ... )
|
||||||
// keep parentheses here: ) ( var ) ;
|
// keep parentheses here: ) ( var ) ;
|
||||||
if (Token::Match(tok->next(), "( %var% ) %op%|;|)|,|]") &&
|
if (Token::Match(tok->next(), "( %var% ) ;|)|,|]|%op%") &&
|
||||||
!tok->isName() &&
|
!tok->isName() &&
|
||||||
tok->str() != ">" &&
|
tok->str() != ">" &&
|
||||||
tok->str() != "]" &&
|
tok->str() != "]" &&
|
||||||
|
|
Loading…
Reference in New Issue