Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp44 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore), in Change()
826 if (C.NewlinesBefore > 0) in alignConsecutiveAssignments()
859 if (C.NewlinesBefore > 0) in alignConsecutiveBitFields()
1072 Newlines += C.NewlinesBefore; in alignTrailingComments()
1161 return Tok->NewlinesBefore > 0; in alignTrailingComments()
1225 if (C.NewlinesBefore > 0) { in alignEscapedNewlines()
1242 if (C.NewlinesBefore > 0) { in alignEscapedNewlines()
1447 if (C.NewlinesBefore == 0) { in getCells()
1492 C.NewlinesBefore = 1; in getCells()
1543 if (Changes[i].NewlinesBefore > 0) in calculateCellWidth()
[all …]
H A DWhitespaceManager.h116 unsigned StartOfTokenColumn, unsigned NewlinesBefore,
131 unsigned NewlinesBefore; member
286 if (Changes[PrevIter->Index].NewlinesBefore > 0) in getNetWidth()
299 if (Changes[CellIter->Index].NewlinesBefore == 0) in getMaximumCellWidth()
304 if (Changes[Next->Index].NewlinesBefore == 0) in getMaximumCellWidth()
H A DAffectedRangeManager.cpp135 Line->First->NewlinesBefore == 0; in nonPPLineAffected()
139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
H A DUnwrappedLineFormatter.cpp231 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine()
1107 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in formatLine()
1420 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format()
1458 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in computeNewlines()
1493 Newlines = std::max(RootToken.NewlinesBefore, 1u); in computeNewlines()
1549 std::min(RootToken.NewlinesBefore, in formatFirstToken()
H A DFormatTokenLexer.cpp100 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
961 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro()
974 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers()
1140 ++FormatTok->NewlinesBefore; in getNextToken()
H A DUsingDeclarationsSorter.cpp227 if (FirstTok->NewlinesBefore > 1) { in analyze()
H A DDefinitionBlockSeparator.cpp163 NextLine->First->NewlinesBefore == 1 && in separateBlocks()
H A DUnwrappedLineParser.cpp335 (Previous->IsMultiline || Previous->NewlinesBefore > 0); in precededByCommentOrPPDirective()
413 if (Next->is(tok::comment) && Next->NewlinesBefore == 0) in parseLevel()
504 } while (NextTok->NewlinesBefore == 0 && NextTok->isNot(tok::eof)); in calculateBraceTypes()
1382 ? Next->NewlinesBefore == 0 in readTokenWithJavaScriptASI()
1383 : CommentsBeforeNextToken.front()->NewlinesBefore == 0; in readTokenWithJavaScriptASI()
2017 ? FormatTok->NewlinesBefore > 0 in parseStructuralElement()
2018 : CommentsBeforeNextToken.front()->NewlinesBefore > 0; in parseStructuralElement()
4498 FormatTok.NewlinesBefore > 0; in isOnNewLine()
4598 if (Node.Tok->NewlinesBefore > 0) in continuesLineCommentSection()
H A DContinuationIndenter.cpp252 if (FirstStartColumn && Line->First->NewlinesBefore == 0) in getInitialState()
440 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in mustBreak()
893 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in addTokenOnCurrentLine()
1067 std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep)); in addTokenOnNewLine()
1882 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) { in moveStatePastScopeOpener()
2089 Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent; in reformatRawStringLiteral()
H A DNamespaceEndCommentsFixer.cpp356 EndCommentNextTok->NewlinesBefore == 0 && in analyze()
H A DFormatToken.h445 unsigned NewlinesBefore = 0; member
732 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
1924 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()
H A DTokenAnnotator.cpp33 return Tok.NewlinesBefore > 0; in mustBreakAfterAttributes()
2978 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next()
3134 if (NextNonCommentLine && NextNonCommentLine->First->NewlinesBefore < 2 && in setCommentLineLevels()
3278 if (First->is(tok::eof) && First->NewlinesBefore == 0 && in annotate()
3280 First->NewlinesBefore = 1; in annotate()
4983 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore()
5156 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore()
5236 return Right.IsMultiline && Right.NewlinesBefore > 0; in mustBreakBefore()
5544 (Left.is(TT_CtorInitializerColon) && Right.NewlinesBefore > 0 && in canBreakBefore()
5713 (!Right.isTrailingComment() || Right.NewlinesBefore > 0); in canBreakBefore()
H A DSortJavaScriptImports.cpp197 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
H A DFormat.cpp2129 if (Next->NewlinesBefore == 0) { in removeParens()
2233 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeBraces()
2284 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeSemi()
2554 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()