Home | History | Annotate | Download | only in Format

Lines Matching defs:Newline

555       bool Newline =
558 Indenter->addTokenToState(State, Newline, /*DryRun=*/false);
883 formatChildren(State, /*Newline=*/false, /*DryRun=*/false, Penalty);
884 Indenter->addTokenToState(State, /*Newline=*/false, DryRun);
955 /// inserting a newline dependent on the \c NewLine.
957 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
958 : State(State), NewLine(NewLine), Previous(Previous) {}
960 bool NewLine;
1110 addNextStateToQueue(Penalty, Node, /*NewLine=*/false, &Count, &Queue);
1112 addNextStateToQueue(Penalty, Node, /*NewLine=*/true, &Count, &Queue);
1142 formatChildren(State, (*I)->NewLine, /*DryRun=*/false, Penalty);
1143 Penalty += Indenter->addTokenToState(State, (*I)->NewLine, false);
1146 if ((*I)->NewLine) {
1158 /// penalty of \p Penalty. Insert a line break if \p NewLine is \c true.
1160 bool NewLine, unsigned *Count, QueueType *Queue) {
1161 if (NewLine && !Indenter->canBreak(PreviousNode->State))
1163 if (!NewLine && Indenter->mustBreak(PreviousNode->State))
1167 StateNode(PreviousNode->State, NewLine, PreviousNode);
1168 if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
1171 Penalty += Indenter->addTokenToState(Node->State, NewLine, true);
1186 /// are currently trying to keep the "}" on the same line (i.e. \p NewLine is
1190 /// If \p NewLine is true, we format the nested block on separate lines, i.e.
1197 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
1207 if (NewLine) {
1391 // There can't be a newline inside a regex literal.