Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp38 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 DWhitespaceManager.h111 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 DAffectedRangeManager.cpp135 Line->First->NewlinesBefore == 0; in nonPPLineAffected()
139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
H A DFormatTokenLexer.cpp100 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
105 if (TokEOF.NewlinesBefore == 0) { in lex()
106 TokEOF.NewlinesBefore = 1; in lex()
999 String->NewlinesBefore = Macro->NewlinesBefore; in tryMerge_TMacro()
1012 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers()
1178 ++FormatTok->NewlinesBefore; in getNextToken()
H A DUnwrappedLineFormatter.cpp230 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine()
1116 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in formatLine()
1429 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format()
1467 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in computeNewlines()
1504 Newlines = std::max(RootToken.NewlinesBefore, 1u); in computeNewlines()
1560 RootToken.NewlinesBefore, in formatFirstToken()
H A DUsingDeclarationsSorter.cpp227 if (FirstTok->NewlinesBefore > 1) { in analyze()
H A DContinuationIndenter.cpp252 if (FirstStartColumn && Line->First->NewlinesBefore == 0) in getInitialState()
448 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in mustBreak()
574 Current.NewlinesBefore > 0); in mustBreak()
903 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in addTokenOnCurrentLine()
1077 std::max(1u, std::min(Current.NewlinesBefore, MaxEmptyLinesToKeep)); in addTokenOnNewLine()
1922 (Tok->CanBreakBefore && Tok->NewlinesBefore > 0)) { in moveStatePastScopeOpener()
2138 Current.NewlinesBefore ? FirstStartColumn - NewPrefixSize : CurrentIndent; in reformatRawStringLiteral()
H A DUnwrappedLineParser.cpp346 (Previous->IsMultiline || Previous->NewlinesBefore > 0); in precededByCommentOrPPDirective()
427 if (Next->is(tok::comment) && Next->NewlinesBefore == 0) in parseLevel()
515 } while (NextTok->NewlinesBefore == 0 && NextTok->isNot(tok::eof)); in calculateBraceTypes()
1386 ? Next->NewlinesBefore == 0 in readTokenWithJavaScriptASI()
1387 : CommentsBeforeNextToken.front()->NewlinesBefore == 0; in readTokenWithJavaScriptASI()
2035 ? FormatTok->NewlinesBefore > 0 in parseStructuralElement()
2036 : CommentsBeforeNextToken.front()->NewlinesBefore > 0; in parseStructuralElement()
4610 FormatTok.NewlinesBefore > 0; in isOnNewLine()
4710 if (Node.Tok->NewlinesBefore > 0) in continuesLineCommentSection()
H A DFormatToken.h467 unsigned NewlinesBefore = 0; member
782 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
1976 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()
H A DTokenAnnotator.cpp33 return Tok.NewlinesBefore > 0; in mustBreakAfterAttributes()
3381 (Current->NewlinesBefore == 0 || SkipPastLeadingComments) && in next()
3538 if (NextNonCommentLine && NextNonCommentLine->First->NewlinesBefore < 2 && in setCommentLineLevels()
5466 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore()
5665 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore()
5675 return Right.NewlinesBefore > 0; in mustBreakBefore()
5697 Right.NewlinesBefore > 0); in mustBreakBefore()
5750 return Right.IsMultiline && Right.NewlinesBefore > 0; in mustBreakBefore()
6074 (Left.is(TT_CtorInitializerColon) && Right.NewlinesBefore > 0 && in canBreakBefore()
6148 Right.NewlinesBefore > 0; in canBreakBefore()
[all …]
H A DSortJavaScriptImports.cpp195 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
H A DFormat.cpp2153 if (Next->NewlinesBefore == 0) { in removeParens()
2257 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeBraces()
2317 if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) { in removeSemi()
2587 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()