Treat checks as mutually exclusive
This commit is contained in:
parent
b49c5d7193
commit
cd4f3cf8db
|
@ -850,10 +850,10 @@ void CheckOther::checkSuspiciousCaseInSwitch()
|
|||
break;
|
||||
if (Token::Match(tok2, "[;}{]"))
|
||||
break;
|
||||
|
||||
if (tok2->str() == "?")
|
||||
finding = nullptr;
|
||||
|
||||
if (Token::Match(tok2, "&&|%oror%"))
|
||||
else if (Token::Match(tok2, "&&|%oror%"))
|
||||
finding = tok2;
|
||||
}
|
||||
if (finding)
|
||||
|
|
Loading…
Reference in New Issue