diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 1a6e57bb3..97b267849 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -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% (")) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 927da2c00..2f2d44210 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -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();