Skip to content

Commit e93fb9c

Browse files
Update checkcondition.cpp
1 parent bf76975 commit e93fb9c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkcondition.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,8 @@ void CheckCondition::alwaysTrueFalse()
15451545
condition = parent->astParent()->astParent()->previous();
15461546
else if (Token::Match(tok, "%comp%"))
15471547
condition = tok;
1548+
else if (tok->str() == "(" && !Token::Match(parent, "%comp%|!"))
1549+
condition = tok;
15481550
else
15491551
continue;
15501552
}

0 commit comments

Comments
 (0)