Lines Matching defs:Previous
498 const FormatToken *Previous = PreviousLine->Last;
499 if (Previous) {
500 if (Previous->is(tok::comment))
501 Previous = Previous->getPreviousNonComment();
502 if (Previous) {
503 if (Previous->is(tok::greater) && !PreviousLine->InPPDirective)
505 if (Previous->is(tok::identifier)) {
507 Previous->getPreviousNonComment();
931 assert(!B.First->Previous);
935 B.First->Previous = A.Last;
953 if (Tok->is(tok::hash) && !Tok->Previous && Tok->Next &&
1033 FormatToken &Previous = *State.NextToken->Previous;
1034 if (Previous.Children.size() == 0 || (!HasLBrace && !LBrace->MacroParent)) {
1040 if (NewLine || Previous.MacroParent) {
1044 P.Indent - Previous.Children[0]->Level * Style.IndentWidth;
1046 BlockFormatter->format(Previous.Children, DryRun, AdditionalIndent,
1051 if (Previous.Children[0]->First->MustBreakBefore)
1055 if (Previous.is(tok::comment))
1059 if (Previous.Children.size() > 1)
1062 const AnnotatedLine *Child = Previous.Children[0];
1187 /// An edge in the solution space from \c Previous->State to \c State,
1190 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
1191 : State(State), NewLine(NewLine), Previous(Previous) {}
1194 StateNode *Previous;
1307 while (Best->Previous) {
1309 Best = Best->Previous;
1317 printLineState(Node->Previous->State);
1320 << Node->Previous->State.NextToken->Tok.getName()
1510 Newlines = 1; // Previous is an access modifier remove all new lines.