Lines Matching defs:NewLine
677 /// inserting a newline dependent on the \c NewLine.
679 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
680 : State(State), NewLine(NewLine), Previous(Previous) {}
682 bool NewLine;
858 addNextStateToQueue(Penalty, Node, /*NewLine=*/false, &Count, &Queue);
860 addNextStateToQueue(Penalty, Node, /*NewLine=*/true, &Count, &Queue);
890 formatChildren(State, (*I)->NewLine, /*DryRun=*/false, Penalty);
891 Penalty += Indenter->addTokenToState(State, (*I)->NewLine, false);
894 if ((*I)->NewLine) {
906 /// penalty of \p Penalty. Insert a line break if \p NewLine is \c true.
908 bool NewLine, unsigned *Count, QueueType *Queue) {
909 if (NewLine && !Indenter->canBreak(PreviousNode->State))
911 if (!NewLine && Indenter->mustBreak(PreviousNode->State))
915 StateNode(PreviousNode->State, NewLine, PreviousNode);
916 if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
919 Penalty += Indenter->addTokenToState(Node->State, NewLine, true);
934 /// are currently trying to keep the "}" on the same line (i.e. \p NewLine is
938 /// If \p NewLine is true, we format the nested block on separate lines, i.e.
945 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
955 if (NewLine) {