Merge pull request #668 from Dmitry-Me/makeChecksMutuallyExclusive
Treat checks as mutually exclusive
This commit is contained in:
commit
117bdef19c
|
@ -850,10 +850,10 @@ void CheckOther::checkSuspiciousCaseInSwitch()
|
||||||
break;
|
break;
|
||||||
if (Token::Match(tok2, "[;}{]"))
|
if (Token::Match(tok2, "[;}{]"))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (tok2->str() == "?")
|
if (tok2->str() == "?")
|
||||||
finding = nullptr;
|
finding = nullptr;
|
||||||
|
else if (Token::Match(tok2, "&&|%oror%"))
|
||||||
if (Token::Match(tok2, "&&|%oror%"))
|
|
||||||
finding = tok2;
|
finding = tok2;
|
||||||
}
|
}
|
||||||
if (finding)
|
if (finding)
|
||||||
|
|
Loading…
Reference in New Issue