Lines Matching defs:Indenter
475 LineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces,
478 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
563 ContinuationIndenter *Indenter;
574 NoColumnLimitLineFormatter(ContinuationIndenter *Indenter,
578 : LineFormatter(Indenter, Whitespaces, Style, BlockFormatter) {}
586 Indenter->getInitialState(FirstIndent, &Line, /*DryRun=*/false);
589 Indenter->mustBreak(State) ||
590 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0);
593 Indenter->addTokenToState(State, Newline, /*DryRun=*/false);
602 NoLineBreakFormatter(ContinuationIndenter *Indenter,
605 : LineFormatter(Indenter, Whitespaces, Style, BlockFormatter) {}
611 LineState State = Indenter->getInitialState(FirstIndent, &Line, DryRun);
614 Indenter->addTokenToState(State, /*Newline=*/false, DryRun);
623 OptimizingLineFormatter(ContinuationIndenter *Indenter,
627 : LineFormatter(Indenter, Whitespaces, Style, BlockFormatter) {}
633 LineState State = Indenter->getInitialState(FirstIndent, &Line, DryRun);
749 if (NewLine && !Indenter->canBreak(PreviousNode->State))
751 if (!NewLine && Indenter->mustBreak(PreviousNode->State))
759 Penalty += Indenter->addTokenToState(Node->State, NewLine, true);
778 Penalty += Indenter->addTokenToState(State, (*I)->NewLine, false);
853 NoColumnLimitLineFormatter(Indenter, Whitespaces, Style, this)
856 Penalty += NoLineBreakFormatter(Indenter, Whitespaces, Style, this)
859 Penalty += OptimizingLineFormatter(Indenter, Whitespaces, Style, this)