Lines Matching defs:NewLine
1109 /// are currently trying to keep the "}" on the same line (i.e. \p NewLine is
1113 /// If \p NewLine is true, we format the nested block on separate lines, i.e.
1120 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
1131 if (NewLine || Previous.MacroParent) {
1231 formatChildren(State, /*NewLine=*/false, DryRun, Penalty);
1279 /// inserting a newline dependent on the \c NewLine.
1281 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
1282 : State(State), NewLine(NewLine), Previous(Previous) {}
1284 bool NewLine;
1348 addNextStateToQueue(Penalty, Node, /*NewLine=*/false, &Count, &Queue);
1350 addNextStateToQueue(Penalty, Node, /*NewLine=*/true, &Count, &Queue);
1374 /// penalty of \p Penalty. Insert a line break if \p NewLine is \c true.
1376 bool NewLine, unsigned *Count, QueueType *Queue) {
1377 if (NewLine && !Indenter->canBreak(PreviousNode->State))
1379 if (!NewLine && Indenter->mustBreak(PreviousNode->State))
1383 StateNode(PreviousNode->State, NewLine, PreviousNode);
1384 if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
1387 Penalty += Indenter->addTokenToState(Node->State, NewLine, true);
1404 formatChildren(State, Node->NewLine, /*DryRun=*/false, Penalty);
1405 Penalty += Indenter->addTokenToState(State, Node->NewLine, false);
1409 if (Node->NewLine) {