reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/AffectedRangeManager.cpp
  134                    Line->First->NewlinesBefore == 0;
  138       Line->First->NewlinesBefore < 2 && PreviousLine &&
tools/clang/lib/Format/ContinuationIndenter.cpp
  241   if (FirstStartColumn && Line->First->NewlinesBefore == 0)
  843         std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep));
 1396               (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) {
 1580       Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent;
tools/clang/lib/Format/FormatToken.h
  434            (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0);
tools/clang/lib/Format/FormatTokenLexer.cpp
   60     if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline)
  533   String->NewlinesBefore = Macro->NewlinesBefore;
  533   String->NewlinesBefore = Macro->NewlinesBefore;
  544   if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof))
  660         ++FormatTok->NewlinesBefore;
  741     ++FormatTok->NewlinesBefore;
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
  243                       EndCommentNextTok->NewlinesBefore == 0 &&
tools/clang/lib/Format/SortJavaScriptImports.cpp
  186     if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2)
tools/clang/lib/Format/TokenAnnotator.cpp
 1989            (Current->NewlinesBefore == 0 || SkipPastLeadingComments) &&
 2018         NextNonCommentLine->First->NewlinesBefore <= 1 &&
 2996   if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0)
 3068            (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline);
 3098     return Right.IsMultiline && Right.NewlinesBefore > 0;
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
  181         if (Next[i + 1]->First->NewlinesBefore > 0)
  843           (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0);
 1146           TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst;
 1183     unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u);
 1190       std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1);
 1215       RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1)
tools/clang/lib/Format/UnwrappedLineParser.cpp
   73   return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 &&
  940           ? Next->NewlinesBefore == 0
  941           : CommentsBeforeNextToken.front()->NewlinesBefore == 0;
 1367                 ? FormatTok->NewlinesBefore > 0
 1368                 : CommentsBeforeNextToken.front()->NewlinesBefore > 0;
 2496          FormatTok.NewlinesBefore > 0;
 2594     if (Node.Tok->NewlinesBefore > 0) {
tools/clang/lib/Format/UsingDeclarationsSorter.cpp
  198     if (FirstTok->NewlinesBefore > 1)
tools/clang/lib/Format/WhitespaceManager.cpp
   64                            Tok.OriginalColumn, Tok.NewlinesBefore, "", "",