Avoid mutually exclusive checks
This commit is contained in:
parent
3251aa912b
commit
a386fbb665
|
@ -412,13 +412,12 @@ void ExecutionPath::checkScope(const Token *tok, std::list<ExecutionPath *> &che
|
||||||
|
|
||||||
// parse next "if"..
|
// parse next "if"..
|
||||||
tok = tok->tokAt(2);
|
tok = tok->tokAt(2);
|
||||||
if (tok && tok->str() == "if")
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!tok) {
|
if (!tok) {
|
||||||
ExecutionPath::bailOut(newchecks);
|
ExecutionPath::bailOut(newchecks);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (tok->str() == "if")
|
||||||
|
continue;
|
||||||
|
|
||||||
// there is no "if"..
|
// there is no "if"..
|
||||||
ExecutionPath::checkScope(tok->next(), checks);
|
ExecutionPath::checkScope(tok->next(), checks);
|
||||||
|
|
Loading…
Reference in New Issue