Home | History | Annotate | Download | only in Format

Lines Matching defs:Newlines

666         unsigned NewLines = 1;
668 NewLines = std::max(
669 NewLines,
671 Whitespaces.replaceWhitespace(Current, NewLines, State.Column,
968 // Don't break string literals with escaped newlines. As clang-format must
987 // Don't break line comments with escaped newlines. These look like
1377 unsigned Newlines = FormatTok->TokenText.count('\n');
1378 if (Newlines > 0)
1381 FormatTok->NewlinesBefore += Newlines;
1383 FormatTok->HasUnescapedNewline |= EscapedNewlines != Newlines;
1389 // In case the token starts with escaped newlines, we want to
1393 // spaces or newlines in the middle of tokens?
1523 unsigned NewLines = std::min(FirstTok->NewlinesBefore, 1u);
1524 Whitespaces.replaceWhitespace(*TheLine.First, NewLines, /*Indent*/ 0,
1859 unsigned Newlines =
1865 Newlines = std::min(Newlines, 1u);
1866 if (Newlines == 0 && !RootToken.IsFirst)
1867 Newlines = 1;
1872 ++Newlines;
1875 RootToken, Newlines, Indent, Indent,