astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-07-25 23:02:16 +02:00
parent f093692551
commit c666f74755
2 changed files with 14 additions and 14 deletions

View File

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