Searched refs:NewlinesBefore (Results 1 – 10 of 10) sorted by relevance
/external/clang/lib/Format/ |
D | WhitespaceManager.cpp | 31 unsigned NewlinesBefore, StringRef PreviousLinePostfix, in Change() argument 36 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore), in Change() 71 /*Spaces=*/0, Tok.OriginalColumn, Tok.NewlinesBefore, "", "", in addUntouchableToken() 133 (Changes[i].NewlinesBefore > 0 || Changes[i].Kind == tok::eof || in calculateLineBreakInformation() 171 if (Changes[i].NewlinesBefore > 0) { in AlignTokenSequence() 244 if (Changes[i].NewlinesBefore != 0) { in AlignTokens() 249 if (Changes[i].NewlinesBefore > 1 || !FoundMatchOnLine) in AlignTokens() 289 for (unsigned j = i; j != e && Changes[j].NewlinesBefore == 0; ++j) in AlignTokens() 315 if (C.NewlinesBefore > 0) in alignConsecutiveAssignments() 319 if (&C != &Changes.back() && (&C + 1)->NewlinesBefore > 0) in alignConsecutiveAssignments() [all …]
|
D | WhitespaceManager.h | 110 unsigned NewlinesBefore, StringRef PreviousLinePostfix, 120 unsigned NewlinesBefore; member
|
D | FormatTokenLexer.cpp | 55 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex() 295 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro() 306 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers() 423 ++FormatTok->NewlinesBefore; in getNextToken() 467 ++FormatTok->NewlinesBefore; in getNextToken()
|
D | AffectedRangeManager.cpp | 134 Line->First->NewlinesBefore == 0; in nonPPLineAffected() 138 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
|
D | UnwrappedLineFormatter.cpp | 149 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine() 590 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in formatLine() 875 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format() 912 unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u); in formatFirstToken() 918 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken() 938 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1) in formatFirstToken()
|
D | FormatToken.h | 123 unsigned NewlinesBefore = 0; member 376 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
|
D | UnwrappedLineParser.cpp | 721 ? Next->NewlinesBefore == 0 in readTokenWithJavaScriptASI() 722 : CommentsBeforeNextToken.front()->NewlinesBefore == 0; in readTokenWithJavaScriptASI() 1077 ? FormatTok->NewlinesBefore > 0 in parseStructuralElement() 1078 : CommentsBeforeNextToken.front()->NewlinesBefore > 0; in parseStructuralElement() 2018 FormatTok.NewlinesBefore > 0; in isOnNewLine()
|
D | SortJavaScriptImports.cpp | 189 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2) in analyze()
|
D | TokenAnnotator.cpp | 1535 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next() 2254 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore() 2310 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore() 2335 return Right.NewlinesBefore > 0; in mustBreakBefore()
|
D | ContinuationIndenter.cpp | 539 1u, std::min(Current.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1)); in addTokenOnNewLine() 989 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) { in moveStatePastScopeOpener()
|