Searched refs:NewlinesBefore (Results 1 – 14 of 14) sorted by relevance
| /openbsd/src/gnu/llvm/clang/lib/Format/ |
| D | WhitespaceManager.cpp | 33 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 …]
|
| D | WhitespaceManager.h | 116 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()
|
| D | AffectedRangeManager.cpp | 135 Line->First->NewlinesBefore == 0; in nonPPLineAffected() 139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
|
| D | UnwrappedLineFormatter.cpp | 224 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()
|
| D | FormatTokenLexer.cpp | 93 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()
|
| D | DefinitionBlockSeparator.cpp | 161 NextLine->First->NewlinesBefore == 1 && in separateBlocks()
|
| D | UsingDeclarationsSorter.cpp | 227 if (FirstTok->NewlinesBefore > 1) { in analyze()
|
| D | UnwrappedLineParser.cpp | 129 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()
|
| D | ContinuationIndenter.cpp | 243 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()
|
| D | NamespaceEndCommentsFixer.cpp | 356 EndCommentNextTok->NewlinesBefore == 0 && in analyze()
|
| D | TokenAnnotator.cpp | 1297 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()
|
| D | SortJavaScriptImports.cpp | 196 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
|
| D | FormatToken.h | 401 unsigned NewlinesBefore = 0; member 673 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()
|
| D | Format.cpp | 2061 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()
|