Added TODO comment
This commit is contained in:
parent
22d7ca648d
commit
a47633c4b9
|
@ -310,6 +310,7 @@ static bool isEscapeScope(const Token* tok, TokenList * tokenlist, bool unknown
|
||||||
{
|
{
|
||||||
if (!Token::simpleMatch(tok, "{"))
|
if (!Token::simpleMatch(tok, "{"))
|
||||||
return false;
|
return false;
|
||||||
|
// TODO this search for termTok in all subscopes. It should check the end of the scope.
|
||||||
const Token * termTok = Token::findmatch(tok, "return|continue|break|throw|goto", tok->link());
|
const Token * termTok = Token::findmatch(tok, "return|continue|break|throw|goto", tok->link());
|
||||||
if (termTok && termTok->scope() == tok->scope())
|
if (termTok && termTok->scope() == tok->scope())
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue