Home
last modified time | relevance | path

Searched refs:NewlinesBefore (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Format/
DWhitespaceManager.cpp31 unsigned NewlinesBefore, StringRef PreviousLinePostfix, in Change() argument
35 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore), in Change()
65 /*Spaces=*/0, Tok.OriginalColumn, Tok.NewlinesBefore, in addUntouchableToken()
119 (Changes[i].NewlinesBefore > 0 || Changes[i].Kind == tok::eof) && in calculateLineBreakInformation()
153 Newlines += Changes[i].NewlinesBefore; in alignTrailingComments()
163 bool FollowsRBraceInColumn0 = i > 0 && Changes[i].NewlinesBefore == 0 && in alignTrailingComments()
167 if (Changes[i].NewlinesBefore == 1) { // A comment on its own line. in alignTrailingComments()
192 (Changes[i].NewlinesBefore == 1 && i > 0 && in alignTrailingComments()
204 (i == 0) || (Changes[i].NewlinesBefore > 1) || in alignTrailingComments()
207 (Changes[i].NewlinesBefore == 1 && StartOfSequence == i); in alignTrailingComments()
[all …]
DWhitespaceManager.h111 unsigned NewlinesBefore, StringRef PreviousLinePostfix,
120 unsigned NewlinesBefore; member
DUnwrappedLineFormatter.cpp316 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in format()
382 if (I[i + 1]->First->NewlinesBefore > 0) in format()
398 unsigned Newlines = std::min(FirstTok->NewlinesBefore, 1u); in format()
445 if (Tok == TheLine.First && (Tok->NewlinesBefore > 0 || Tok->IsFirst)) { in format()
494 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken()
514 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1) in formatFirstToken()
DFormatToken.h109 : NewlinesBefore(0), HasUnescapedNewline(false), LastNewlineOffset(0), in FormatToken()
131 unsigned NewlinesBefore; member
352 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
DFormat.cpp620 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
772 if (I[0]->NewlinesBefore > 0) in tryMergeJSRegexLiteral()
799 if (I[0]->NewlinesBefore > 0 || I[0]->IsMultiline) in tryMergeTemplateString()
815 if (I[0]->NewlinesBefore > 0 && (I + 1 != E)) in tryMergeTemplateString()
880 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro()
891 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers()
996 ++FormatTok->NewlinesBefore; in getNextToken()
1045 ++FormatTok->NewlinesBefore; in getNextToken()
1334 Line->First->NewlinesBefore == 0; in nonPPLineAffected()
1338 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
DTokenAnnotator.cpp1310 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next()
1896 if (Right.NewlinesBefore > 1) in mustBreakBefore()
1917 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore()
1940 return Right.NewlinesBefore > 0; in mustBreakBefore()
DUnwrappedLineParser.cpp858 if (FormatTok->NewlinesBefore > 0 && in parseStructuralElement()
1729 FormatTok.NewlinesBefore > 0; in isOnNewLine()
DContinuationIndenter.cpp458 1u, std::min(Current.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1)); in addTokenOnNewLine()