We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0faaf14 commit 8dc1bd6Copy full SHA for 8dc1bd6
1 file changed
lib/checkcondition.cpp
@@ -1545,7 +1545,7 @@ void CheckCondition::alwaysTrueFalse()
1545
condition = parent->astParent()->astParent()->previous();
1546
else if (Token::Match(tok, "%comp%"))
1547
condition = tok;
1548
- else if (tok->str() == "(" && !Token::Match(parent, "%comp%|!"))
+ else if (tok->str() == "(" && astIsBool(parent) && Token::Match(parent, "%assign%"))
1549
1550
else
1551
continue;
0 commit comments