Home | History | Annotate | Download | only in Format

Lines Matching refs:Previous

508     const AnnotatedToken &Previous = *State.NextToken->Parent;
533 (Previous.isOneOf(tok::equal, tok::coloncolon) ||
542 } else if (Previous.is(tok::comma) && State.VariablePos != 0 &&
546 } else if (Previous.ClosesTemplateDeclaration ||
558 } else if (Previous.Type == TT_ObjCMethodExpr ||
567 if (Previous.isOneOf(tok::comma, tok::semi) &&
597 if (Previous.is(tok::l_brace))
603 if ((Previous.isNot(tok::l_paren) && Previous.isNot(tok::l_brace)) ||
612 State.VariablePos = State.Column - Previous.FormatTok.TokenLength;
631 (Previous.isOneOf(tok::l_paren, tok::l_brace) ||
634 if (Previous.is(tok::comma) && !isTrailingComment(Current))
638 if (Current.is(tok::l_paren) && Previous.is(tok::kw_if))
642 else if (Previous.is(tok::comma) && State.ParenLevel != 0)
645 else if ((Previous.Type == TT_BinaryOperator ||
646 Previous.Type == TT_ConditionalExpr ||
647 Previous.Type == TT_CtorInitializerColon) &&
648 getPrecedence(Previous) != prec::Assignment)
650 else if (Previous.Type == TT_InheritanceColon)
652 else if (Previous.ParameterCount > 1 &&
653 (Previous.isOneOf(tok::l_paren, tok::l_square, tok::l_brace) ||
654 Previous.Type == TT_TemplateOpener))
867 /// \brief An edge in the solution space from \c Previous->State to \c State,
870 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
871 : State(State), NewLine(NewLine), Previous(Previous) {}
874 StateNode *Previous;
943 if (Current->Previous == NULL)
945 reconstructPath(State, Current->Previous);
950 << Current->Previous->State.NextToken->FormatTok.Tok.getName()
951 << ": " << Current->Previous->State.NextToken->SplitPenalty << "\n";
1234 // Remove trailing whitespace of the previous line if it was touched.