parent
ac67049661
commit
0c6dc84cbb
|
@ -957,8 +957,12 @@ bool isOppositeCond(bool isNot, bool cpp, const Token * const cond1, const Token
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (cond1->str() == "&&" && cond2->str() == "&&") {
|
if (cond1->str() == "&&" && cond2->str() == "&&") {
|
||||||
for(const Token* tok1:{cond1->astOperand1(), cond1->astOperand2()}) {
|
for (const Token* tok1: {
|
||||||
for(const Token* tok2:{cond2->astOperand1(), cond2->astOperand2()}) {
|
cond1->astOperand1(), cond1->astOperand2()
|
||||||
|
}) {
|
||||||
|
for (const Token* tok2: {
|
||||||
|
cond2->astOperand1(), cond2->astOperand2()
|
||||||
|
}) {
|
||||||
if (isSameExpression(cpp, true, tok1, tok2, library, pure, followVar, errors)) {
|
if (isSameExpression(cpp, true, tok1, tok2, library, pure, followVar, errors)) {
|
||||||
if (isOppositeCond(isNot, cpp, tok1->astSibling(), tok2->astSibling(), library, pure, followVar, errors))
|
if (isOppositeCond(isNot, cpp, tok1->astSibling(), tok2->astSibling(), library, pure, followVar, errors))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue