Merge pull request #668 from Dmitry-Me/makeChecksMutuallyExclusive

Treat checks as mutually exclusive
This commit is contained in:
orbitcowboy 2015-09-04 11:17:42 +02:00
commit 117bdef19c
1 changed files with 2 additions and 2 deletions

View File

@ -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)