Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/clang/lib/Format/
DWhitespaceManager.cpp33 unsigned NewlinesBefore, in Change() argument
39 StartOfTokenColumn(StartOfTokenColumn), NewlinesBefore(NewlinesBefore), in Change()
67 Tok.OriginalColumn, Tok.NewlinesBefore, "", "", in addUntouchableToken()
170 if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0) { in calculateLineBreakInformation()
181 (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) || in calculateLineBreakInformation()
226 if (Change.IsInsideToken && Change.NewlinesBefore == 0) in calculateLineBreakInformation()
328 if (Changes[i].NewlinesBefore > 0 && !SkipMatchCheck) { in AlignTokenSequence()
343 if (Changes[i].NewlinesBefore == 0) { in AlignTokenSequence()
352 if (InsideNestedScope && Changes[i].NewlinesBefore > 0) { in AlignTokenSequence()
378 if (Changes[ScopeStart].NewlinesBefore > 0) in AlignTokenSequence()
[all …]
DWhitespaceManager.h116 unsigned StartOfTokenColumn, unsigned NewlinesBefore,
131 unsigned NewlinesBefore; member
282 if (Changes[PrevIter->Index].NewlinesBefore > 0) in getNetWidth()
295 if (Changes[CellIter->Index].NewlinesBefore == 0) in getMaximumCellWidth()
300 if (Changes[Next->Index].NewlinesBefore == 0) in getMaximumCellWidth()
DAffectedRangeManager.cpp135 Line->First->NewlinesBefore == 0; in nonPPLineAffected()
139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
DUnwrappedLineFormatter.cpp224 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine()
1071 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in formatLine()
1383 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format()
1421 unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u); in formatFirstToken()
1428 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken()
1463 Newlines = std::max(RootToken.NewlinesBefore, 1u); in formatFirstToken()
DFormatTokenLexer.cpp93 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
850 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro()
863 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers()
1029 ++FormatTok->NewlinesBefore; in getNextToken()
DDefinitionBlockSeparator.cpp161 NextLine->First->NewlinesBefore == 1 && in separateBlocks()
DUsingDeclarationsSorter.cpp227 if (FirstTok->NewlinesBefore > 1) { in analyze()
DUnwrappedLineParser.cpp129 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()
482 (Previous->IsMultiline || Previous->NewlinesBefore > 0); in precededByCommentOrPPDirective()
569 if (Next->is(tok::comment) && Next->NewlinesBefore == 0) in parseLevel()
1493 ? Next->NewlinesBefore == 0 in readTokenWithJavaScriptASI()
1494 : CommentsBeforeNextToken.front()->NewlinesBefore == 0; in readTokenWithJavaScriptASI()
2075 ? FormatTok->NewlinesBefore > 0 in parseStructuralElement()
2076 : CommentsBeforeNextToken.front()->NewlinesBefore > 0; in parseStructuralElement()
4375 FormatTok.NewlinesBefore > 0; in isOnNewLine()
4475 if (Node.Tok->NewlinesBefore > 0) in continuesLineCommentSection()
DContinuationIndenter.cpp243 if (FirstStartColumn && Line->First->NewlinesBefore == 0) in getInitialState()
421 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in mustBreak()
814 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in addTokenOnCurrentLine()
988 std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep)); in addTokenOnNewLine()
1722 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) { in moveStatePastScopeOpener()
1924 Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent; in reformatRawStringLiteral()
DNamespaceEndCommentsFixer.cpp356 EndCommentNextTok->NewlinesBefore == 0 && in analyze()
DTokenAnnotator.cpp1297 if (Style.InsertNewlineAtEOF && Tok->NewlinesBefore == 0) in consumeToken()
1298 Tok->NewlinesBefore = 1; in consumeToken()
2706 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next()
2729 NextNonCommentLine->First->NewlinesBefore <= 1 && in setCommentLineLevels()
2942 return Tok.NewlinesBefore > 0; in mustBreakAfterAttributes()
4358 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore()
4518 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore()
4586 return Right.IsMultiline && Right.NewlinesBefore > 0; in mustBreakBefore()
4912 (Left.is(TT_CtorInitializerColon) && Right.NewlinesBefore > 0 && in canBreakBefore()
5079 (!Right.isTrailingComment() || Right.NewlinesBefore > 0); in canBreakBefore()
DSortJavaScriptImports.cpp196 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
DFormatToken.h401 unsigned NewlinesBefore = 0; member
673 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
DFormat.cpp2061 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeBraces()
2112 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeSemi()
2382 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()