Home | History | Annotate | Download | only in Format

Lines Matching refs:NewLine

393     /// \brief Whether a newline needs to be inserted before the block's closing
396 /// We only want to insert a newline before the closing brace if there also
397 /// was a newline after the beginning left brace.
501 /// Puts the token on the current line if \p Newline is \c true and adds a
506 unsigned addTokenToState(bool Newline, bool DryRun, LineState &State) {
521 if (Newline) {
868 /// inserting a newline dependent on the \c NewLine.
870 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
871 : State(State), NewLine(NewLine), Previous(Previous) {}
873 bool NewLine;
921 addNextStateToQueue(Penalty, Node, /*NewLine=*/ false);
922 addNextStateToQueue(Penalty, Node, /*NewLine=*/ true);
947 if (Current->NewLine) {
954 addTokenToState(Current->NewLine, false, State);
960 /// penalty of \p Penalty. Insert a line break if \p NewLine is \c true.
962 bool NewLine) {
963 if (NewLine && !canBreak(PreviousNode->State))
965 if (!NewLine && mustBreak(PreviousNode->State))
967 if (NewLine)
971 StateNode(PreviousNode->State, NewLine, PreviousNode);
972 Penalty += addTokenToState(NewLine, true, Node->State);