parent
f093692551
commit
c666f74755
|
@ -1545,7 +1545,7 @@ static bool evalAssignment(ValueFlow::Value &lhsValue, const std::string &assign
|
||||||
|
|
||||||
static bool isEscapeScope(const Token* tok, TokenList * tokenlist)
|
static bool isEscapeScope(const Token* tok, TokenList * tokenlist)
|
||||||
{
|
{
|
||||||
if(!Token::simpleMatch(tok, "{"))
|
if (!Token::simpleMatch(tok, "{"))
|
||||||
return false;
|
return false;
|
||||||
return Token::findmatch(tok, "return|continue|break|throw|goto", tok->link()) ||
|
return Token::findmatch(tok, "return|continue|break|throw|goto", tok->link()) ||
|
||||||
(tokenlist && tokenlist->getSettings()->library.isScopeNoReturn(tok->link(), nullptr));
|
(tokenlist && tokenlist->getSettings()->library.isScopeNoReturn(tok->link(), nullptr));
|
||||||
|
|
Loading…
Reference in New Issue