Lines Matching refs:CanBeInitStatement
337 bool CanBeInitStatement; member
339 ConditionDeclarationOrInitStatementState(Parser &P, bool CanBeInitStatement) in ConditionDeclarationOrInitStatementState()
340 : P(P), CanBeInitStatement(CanBeInitStatement) {} in ConditionDeclarationOrInitStatementState()
345 if (CanBeCondition && CanBeInitStatement) { in markNotExpression()
355 CanBeInitStatement = false; in markNotExpression()
361 return !CanBeInitStatement || !CanBeExpression; in markNotCondition()
370 CanBeCondition = CanBeInitStatement = false; in update()
375 CanBeExpression = CanBeCondition = CanBeInitStatement = false; in update()
382 assert(CanBeExpression + CanBeCondition + CanBeInitStatement < 2 && in result()
388 if (CanBeInitStatement) in result()
412 Parser::isCXXConditionDeclarationOrInitStatement(bool CanBeInitStatement) { in isCXXConditionDeclarationOrInitStatement() argument
413 ConditionDeclarationOrInitStatementState State(*this, CanBeInitStatement); in isCXXConditionDeclarationOrInitStatement()
459 else if (State.CanBeInitStatement && Tok.is(tok::semi)) in isCXXConditionDeclarationOrInitStatement()