astyle formatting

This commit is contained in:
Daniel Marjamäki 2020-09-20 20:14:30 +02:00
parent 857722f859
commit c563944fdd
2 changed files with 2 additions and 3 deletions

View File

@ -1649,7 +1649,7 @@ Token* findVariableChanged(Token *start, const Token *end, int indirect, const n
return nullptr;
if (depth < 0)
return start;
auto getExprTok = memoize([&]{ return findExpression(start, exprid); });
auto getExprTok = memoize([&] { return findExpression(start, exprid); });
for (Token *tok = start; tok != end; tok = tok->next()) {
if (tok->exprId() != exprid) {
if (globalvar && Token::Match(tok, "%name% ("))

View File

@ -797,8 +797,7 @@ static void compileTerm(Token *&tok, AST_state& state)
} else if (!state.cpp || !Token::Match(tok, "new|delete %name%|*|&|::|(|[")) {
tok = skipDecl(tok);
bool repeat = true;
while (repeat)
{
while (repeat) {
repeat = false;
if (Token::Match(tok->next(), "%name%")) {
tok = tok->next();