Searched refs:NewlinesBefore (Results 1 - 12 of 12) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp31 unsigned NewlinesBefore,
37 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore),
65 Tok.OriginalColumn, Tok.NewlinesBefore, "", "",
161 if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0)
171 (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) ||
216 if (Change.IsInsideToken && Change.NewlinesBefore == 0)
302 if (Changes[i].NewlinesBefore > 0 && !InsideNestedScope) {
318 if (InsideNestedScope && Changes[i].NewlinesBefore > 0) {
411 if (Changes[i].NewlinesBefore !
27 Change(const FormatToken &Tok, bool CreateReplacement, SourceRange OriginalWhitespaceRange, int Spaces, unsigned StartOfTokenColumn, unsigned NewlinesBefore, StringRef PreviousLinePostfix, StringRef CurrentLinePrefix, bool IsAligned, bool ContinuesPPDirective, bool IsInsideToken) argument
[all...]
H A DWhitespaceManager.h104 /// \p PreviousLinePostfix, \p NewlinesBefore line breaks, \p Spaces spaces
111 unsigned StartOfTokenColumn, unsigned NewlinesBefore,
126 unsigned NewlinesBefore; member in struct:clang::format::WhitespaceManager::Change
H A DAffectedRangeManager.cpp134 Line->First->NewlinesBefore == 0;
138 Line->First->NewlinesBefore < 2 && PreviousLine &&
H A DFormatTokenLexer.cpp71 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline)
736 String->NewlinesBefore = Macro->NewlinesBefore;
747 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof))
863 ++FormatTok->NewlinesBefore;
944 ++FormatTok->NewlinesBefore;
H A DUnwrappedLineFormatter.cpp183 if (Next[i + 1]->First->NewlinesBefore > 0)
848 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0);
1151 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst;
1188 unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u);
1195 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1);
1220 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1)
H A DUsingDeclarationsSorter.cpp198 if (FirstTok->NewlinesBefore > 1)
H A DNamespaceEndCommentsFixer.cpp278 EndCommentNextTok->NewlinesBefore == 0 &&
H A DUnwrappedLineParser.cpp74 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 &&
989 ? Next->NewlinesBefore == 0
990 : CommentsBeforeNextToken.front()->NewlinesBefore == 0;
1445 ? FormatTok->NewlinesBefore > 0
1446 : CommentsBeforeNextToken.front()->NewlinesBefore > 0;
2798 FormatTok.NewlinesBefore > 0;
2897 if (Node.Tok->NewlinesBefore > 0) {
H A DSortJavaScriptImports.cpp186 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2)
H A DFormatToken.h152 unsigned NewlinesBefore = 0; member in struct:clang::format::FormatToken
450 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0);
H A DContinuationIndenter.cpp241 if (FirstStartColumn && Line->First->NewlinesBefore == 0)
867 std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep));
1507 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) {
1706 Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent;
H A DTokenAnnotator.cpp2212 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) &&
2241 NextNonCommentLine->First->NewlinesBefore <= 1 &&
3420 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0)
3517 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline);
3547 return Right.IsMultiline && Right.NewlinesBefore > 0;

Completed in 181 milliseconds