Searched refs:NewlinesBefore (Results 1 - 12 of 12) sorted by relevance
/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/ |
H A D | WhitespaceManager.cpp | 31 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 D | WhitespaceManager.h | 104 /// \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 D | AffectedRangeManager.cpp | 134 Line->First->NewlinesBefore == 0; 138 Line->First->NewlinesBefore < 2 && PreviousLine &&
|
H A D | FormatTokenLexer.cpp | 71 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 D | UnwrappedLineFormatter.cpp | 183 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 D | UsingDeclarationsSorter.cpp | 198 if (FirstTok->NewlinesBefore > 1)
|
H A D | NamespaceEndCommentsFixer.cpp | 278 EndCommentNextTok->NewlinesBefore == 0 &&
|
H A D | UnwrappedLineParser.cpp | 74 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 D | SortJavaScriptImports.cpp | 186 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2)
|
H A D | FormatToken.h | 152 unsigned NewlinesBefore = 0; member in struct:clang::format::FormatToken 450 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0);
|
H A D | ContinuationIndenter.cpp | 241 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 D | TokenAnnotator.cpp | 2212 (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