Searched refs:NewlinesBefore (Results 1 – 13 of 13) sorted by relevance
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | WhitespaceManager.cpp | 38 unsigned NewlinesBefore, in Change() argument 44 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore), in Change() 72 Tok.OriginalColumn, Tok.NewlinesBefore, "", "", in addUntouchableToken() 185 if (P.IsInsideToken && P.NewlinesBefore == 0) in calculateLineBreakInformation() 193 (C.NewlinesBefore > 0 || C.Tok->is(tok::eof) || in calculateLineBreakInformation() 238 if (Change.IsInsideToken && Change.NewlinesBefore == 0) in calculateLineBreakInformation() 341 if (CurrentChange.NewlinesBefore > 0 && !SkipMatchCheck) { in AlignTokenSequence() 356 if (CurrentChange.NewlinesBefore == 0) { in AlignTokenSequence() 368 if (InsideNestedScope && CurrentChange.NewlinesBefore > 0) { in AlignTokenSequence() 395 if (Changes[ScopeStart].NewlinesBefore > 0) in AlignTokenSequence() [all …]
|
| H A D | WhitespaceManager.h | 111 unsigned StartOfTokenColumn, unsigned NewlinesBefore, 126 unsigned NewlinesBefore; member 295 if (Changes[PrevIter->Index].NewlinesBefore > 0) in getNetWidth() 308 if (Changes[CellIter->Index].NewlinesBefore == 0) in getMaximumCellWidth() 313 if (Changes[Next->Index].NewlinesBefore == 0) in getMaximumCellWidth()
|
| H A D | FormatTokenLexer.cpp | 94 const auto NewlinesBefore = Tok.NewlinesBefore; in lex() local 97 if (NewlinesBefore > 1) { in lex() 105 if (NewlinesBefore == 0) { in lex() 114 (NewlinesBefore > 0 || Tokens.size() == 1)) { in lex() 120 if (Token->NewlinesBefore > 0) in lex() 142 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex() 147 if (TokEOF.NewlinesBefore == 0) { in lex() 148 TokEOF.NewlinesBefore = 1; in lex() 1091 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro() 1104 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers() [all …]
|
| H A D | AffectedRangeManager.cpp | 135 Line->First->NewlinesBefore == 0; in nonPPLineAffected() 139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
|
| H A D | UnwrappedLineFormatter.cpp | 210 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine() 1174 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in formatLine() 1487 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format() 1525 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in computeNewlines() 1579 Newlines = std::max(RootToken.NewlinesBefore, 1u); in computeNewlines() 1635 RootToken.NewlinesBefore, in formatFirstToken()
|
| H A D | UsingDeclarationsSorter.cpp | 226 if (FirstTok->NewlinesBefore > 1) { in analyze()
|
| H A D | DefinitionBlockSeparator.cpp | 166 NextLine->First->NewlinesBefore == 1 && in separateBlocks()
|
| H A D | ContinuationIndenter.cpp | 260 if (FirstStartColumn && Line->First->NewlinesBefore == 0) in getInitialState() 477 Current.NewlinesBefore > 0)) { in mustBreak() 600 Current.NewlinesBefore > 0); in mustBreak() 998 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in addTokenOnCurrentLine() 1172 std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep)); in addTokenOnNewLine() 2040 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) { in moveStatePastScopeOpener() 2257 Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent; in reformatRawStringLiteral()
|
| H A D | UnwrappedLineParser.cpp | 340 (Previous->IsMultiline || Previous->NewlinesBefore > 0); in precededByCommentOrPPDirective() 421 if (Next->is(tok::comment) && Next->NewlinesBefore == 0) in parseLevel() 1393 ? Next->NewlinesBefore == 0 in readTokenWithJavaScriptASI() 1394 : CommentsBeforeNextToken.front()->NewlinesBefore == 0; in readTokenWithJavaScriptASI() 2043 ? FormatTok->NewlinesBefore > 0 in parseStructuralElement() 2044 : CommentsBeforeNextToken.front()->NewlinesBefore > 0; in parseStructuralElement() 4634 FormatTok.NewlinesBefore > 0; in isOnNewLine() 4734 if (Node.Tok->NewlinesBefore > 0) in continuesLineCommentSection()
|
| H A D | FormatToken.h | 475 unsigned NewlinesBefore = 0; member 784 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment() 1959 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()
|
| H A D | TokenAnnotator.cpp | 32 return Tok.NewlinesBefore > 0; in mustBreakAfterAttributes() 3445 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next() 3602 if (NextNonCommentLine && NextNonCommentLine->First->NewlinesBefore < 2 && in setCommentLineLevels() 5600 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0 && in mustBreakBefore() 5810 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore() 5820 return Right.NewlinesBefore > 0; in mustBreakBefore() 5843 Right.NewlinesBefore > 0); in mustBreakBefore() 5898 return Right.IsMultiline && Right.NewlinesBefore > 0; in mustBreakBefore() 6253 (Left.is(TT_CtorInitializerColon) && Right.NewlinesBefore > 0 && in canBreakBefore() 6328 Right.NewlinesBefore > 0; in canBreakBefore() [all …]
|
| H A D | SortJavaScriptImports.cpp | 193 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
|
| H A D | Format.cpp | 2261 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in replaceToken() 2756 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()
|