astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-08-07 18:06:51 +02:00
parent 78df7f98dd
commit c3a44ce56b
3 changed files with 38 additions and 37 deletions

View File

@ -142,7 +142,8 @@ static const Token * getVariableInitExpression(const Variable * var)
return var->declEndToken()->astOperand2();
}
static bool isInLoopCondition(const Token * tok) {
static bool isInLoopCondition(const Token * tok)
{
return Token::Match(tok->astTop()->previous(), "for|while (");
}