Lines Matching refs:Newline
343 moveStateToNextToken(State, /*DryRun=*/false, /*Newline=*/false);
405 /// \brief Whether a newline needs to be inserted before the block's closing
408 /// We only want to insert a newline before the closing brace if there also
409 /// was a newline after the beginning left brace.
561 bool Newline = mustBreak(State) ||
563 addTokenToState(Newline, /*DryRun=*/false, State);
570 /// Puts the token on the current line if \p Newline is \c false and adds a
575 unsigned addTokenToState(bool Newline, bool DryRun, LineState &State) {
597 if (Newline) {
790 return moveStateToNextToken(State, DryRun, Newline) + ExtraPenalty;
795 unsigned moveStateToNextToken(LineState &State, bool DryRun, bool Newline) {
939 if (!Newline && Style.AlwaysBreakBeforeMultilineStrings &&
1076 /// inserting a newline dependent on the \c NewLine.
1078 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
1079 : State(State), NewLine(NewLine), Previous(Previous) {}
1081 bool NewLine;
1134 addNextStateToQueue(Penalty, Node, /*NewLine=*/false);
1135 addNextStateToQueue(Penalty, Node, /*NewLine=*/true);
1159 if ((*I)->NewLine) {
1165 addTokenToState((*I)->NewLine, false, State);
1172 /// penalty of \p Penalty. Insert a line break if \p NewLine is \c true.
1174 bool NewLine) {
1175 if (NewLine && !canBreak(PreviousNode->State))
1177 if (!NewLine && mustBreak(PreviousNode->State))
1179 if (NewLine) {
1186 StateNode(PreviousNode->State, NewLine, PreviousNode);
1187 Penalty += addTokenToState(NewLine, true, Node->State);