astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-09-07 10:56:02 +02:00
parent ac67049661
commit 0c6dc84cbb
4 changed files with 13 additions and 9 deletions

View File

@ -957,8 +957,12 @@ bool isOppositeCond(bool isNot, bool cpp, const Token * const cond1, const Token
return false;
if (cond1->str() == "&&" && cond2->str() == "&&") {
for(const Token* tok1:{cond1->astOperand1(), cond1->astOperand2()}) {
for(const Token* tok2:{cond2->astOperand1(), cond2->astOperand2()}) {
for (const Token* tok1: {
cond1->astOperand1(), cond1->astOperand2()
}) {
for (const Token* tok2: {
cond2->astOperand1(), cond2->astOperand2()
}) {
if (isSameExpression(cpp, true, tok1, tok2, library, pure, followVar, errors)) {
if (isOppositeCond(isNot, cpp, tok1->astSibling(), tok2->astSibling(), library, pure, followVar, errors))
return true;