Searched refs:NewlinesBefore (Results 1 – 14 of 14) sorted by relevance
44 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 …]
116 unsigned StartOfTokenColumn, unsigned NewlinesBefore,131 unsigned NewlinesBefore; member286 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()
135 Line->First->NewlinesBefore == 0; in nonPPLineAffected()139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
231 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()
100 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()
227 if (FirstTok->NewlinesBefore > 1) { in analyze()
163 NextLine->First->NewlinesBefore == 1 && in separateBlocks()
335 (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()
252 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()
356 EndCommentNextTok->NewlinesBefore == 0 && in analyze()
445 unsigned NewlinesBefore = 0; member732 (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0); in isTrailingComment()1924 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()
33 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()
197 if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2 && in analyze()
2129 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()