Added TODO comment

This commit is contained in:
Daniel Marjamäki 2019-08-26 06:56:29 +02:00
parent 22d7ca648d
commit a47633c4b9
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ static bool isEscapeScope(const Token* tok, TokenList * tokenlist, bool unknown
{
if (!Token::simpleMatch(tok, "{"))
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());
if (termTok && termTok->scope() == tok->scope())
return true;