astyle formatting
This commit is contained in:
parent
857722f859
commit
c563944fdd
|
@ -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% ("))
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue