Lines Matching refs:Last
254 if (TheLine->Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
271 Limit = TheLine->Last->TotalLength > Limit in tryFitMultipleLinesInOne()
273 : Limit - TheLine->Last->TotalLength; in tryFitMultipleLinesInOne()
275 if (TheLine->Last->is(TT_FunctionLBrace) && in tryFitMultipleLinesInOne()
276 TheLine->First == TheLine->Last && in tryFitMultipleLinesInOne()
284 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne()
285 TheLine->First == TheLine->Last) { in tryFitMultipleLinesInOne()
326 if (Style.isJavaScript() && TheLine->Last->is(TT_FunctionLBrace)) in tryFitMultipleLinesInOne()
375 I[J]->Last->TotalLength < Limit; in tryFitMultipleLinesInOne()
377 Limit -= I[J]->Last->TotalLength; in tryFitMultipleLinesInOne()
405 I[i]->Last->isNot(tok::r_brace); in tryFitMultipleLinesInOne()
425 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
445 TheLine->Last->TotalLength <= in tryFitMultipleLinesInOne()
466 TheLine->Last->TotalLength <= Style.ColumnLimit) in tryFitMultipleLinesInOne()
498 TheLine->Last->is(tok::l_brace) && PreviousLine->Last) { in tryFitMultipleLinesInOne()
499 const FormatToken *Previous = PreviousLine->Last; in tryFitMultipleLinesInOne()
518 if (TheLine->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
521 if (TheLine->Last->is(TT_EnumLBrace)) { in tryFitMultipleLinesInOne()
523 } else if (TheLine->Last->is(TT_RequiresExpressionLBrace)) { in tryFitMultipleLinesInOne()
525 } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { in tryFitMultipleLinesInOne()
547 if (NextLine.Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
558 NextLine.First == NextLine.Last && I + 2 != E && in tryFitMultipleLinesInOne()
609 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimplePPDirective()
632 Line.Last->isNot(tok::kw_else) && Line.Last->isNot(tok::r_paren)) { in tryMergeSimpleControlStatement()
636 if (Line.First->is(tok::kw_do) && Line.Last->isNot(tok::kw_do)) in tryMergeSimpleControlStatement()
638 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimpleControlStatement()
664 if (I[0]->Last->is(tok::l_brace) || I[1]->First->is(tok::l_brace)) in tryMergeShortCaseLabels()
702 if (Line->Last->is(tok::comment)) in tryMergeShortCaseLabels()
704 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
801 if (IsSplitBlock && Line.First == Line.Last && in tryMergeSimpleBlock()
817 (Style.SpaceInEmptyBlock || Line.Last->is(tok::comment)) ? 1 : 0; in tryMergeSimpleBlock()
823 if (isRecordLBrace(*Line.Last)) in tryMergeSimpleBlock()
836 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
859 if (Line.First == Line.Last && Line.First->isNot(TT_FunctionLBrace) && in tryMergeSimpleBlock()
868 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
877 (I[1]->First == I[1]->Last && I + 2 != E && in tryMergeSimpleBlock()
907 return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit; in nextTwoLinesFitInto()
921 assert(!A.Last->Next); in join()
925 A.Last->Next = B.First; in join()
926 B.First->Previous = A.Last; in join()
928 unsigned LengthA = A.Last->TotalLength + B.First->SpacesRequiredBefore; in join()
931 A.Last = Tok; in join()
1055 if (Child->Last->isTrailingComment()) in formatChildren()
1061 Child->Last->TotalLength + State.Column + 2 > Style.ColumnLimit) { in formatChildren()
1076 State.Column += 1 + Child->Last->TotalLength; in formatChildren()
1389 (TheLine.Last->TotalLength + Indent <= ColumnLimit || in format()
1477 PreviousLine->Last->is(tok::l_brace) && in computeNewlines()
1496 if (PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && Newlines <= 1) in computeNewlines()
1503 if (PreviousLine->Last->is(tok::comment)) in computeNewlines()
1504 previousToken = PreviousLine->Last->getPreviousNonComment(); in computeNewlines()
1506 previousToken = PreviousLine->Last; in computeNewlines()