Lines Matching refs:Last

253     if (TheLine->Last->is(TT_LineComment))  in tryFitMultipleLinesInOne()
270 Limit = TheLine->Last->TotalLength > Limit in tryFitMultipleLinesInOne()
272 : Limit - TheLine->Last->TotalLength; in tryFitMultipleLinesInOne()
274 if (TheLine->Last->is(TT_FunctionLBrace) && in tryFitMultipleLinesInOne()
275 TheLine->First == TheLine->Last && in tryFitMultipleLinesInOne()
283 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne()
284 TheLine->First == TheLine->Last) { in tryFitMultipleLinesInOne()
325 if (Style.isJavaScript() && TheLine->Last->is(TT_FunctionLBrace)) in tryFitMultipleLinesInOne()
374 I[J]->Last->TotalLength < Limit; in tryFitMultipleLinesInOne()
376 Limit -= I[J]->Last->TotalLength; in tryFitMultipleLinesInOne()
404 I[i]->Last->isNot(tok::r_brace); in tryFitMultipleLinesInOne()
424 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
444 TheLine->Last->TotalLength <= in tryFitMultipleLinesInOne()
465 TheLine->Last->TotalLength <= Style.ColumnLimit) in tryFitMultipleLinesInOne()
497 TheLine->Last->is(tok::l_brace) && PreviousLine->Last) { in tryFitMultipleLinesInOne()
498 const FormatToken *Previous = PreviousLine->Last; in tryFitMultipleLinesInOne()
523 if (TheLine->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
526 if (TheLine->Last->is(TT_EnumLBrace)) { in tryFitMultipleLinesInOne()
528 } else if (TheLine->Last->is(TT_RequiresExpressionLBrace)) { in tryFitMultipleLinesInOne()
530 } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { in tryFitMultipleLinesInOne()
552 if (NextLine.Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
563 NextLine.First == NextLine.Last && I + 2 != E && in tryFitMultipleLinesInOne()
614 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimplePPDirective()
637 Line.Last->isNot(tok::kw_else) && Line.Last->isNot(tok::r_paren)) { in tryMergeSimpleControlStatement()
641 if (Line.First->is(tok::kw_do) && Line.Last->isNot(tok::kw_do)) in tryMergeSimpleControlStatement()
643 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimpleControlStatement()
669 if (I[0]->Last->is(tok::l_brace) || I[1]->First->is(tok::l_brace)) in tryMergeShortCaseLabels()
707 if (Line->Last->is(tok::comment)) in tryMergeShortCaseLabels()
709 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
810 if (IsSplitBlock && Line.First == Line.Last && in tryMergeSimpleBlock()
826 (Style.SpaceInEmptyBlock || Line.Last->is(tok::comment)) ? 1 : 0; in tryMergeSimpleBlock()
832 if (isRecordLBrace(*Line.Last)) in tryMergeSimpleBlock()
845 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
868 if (Line.First == Line.Last && Line.First->isNot(TT_FunctionLBrace) && in tryMergeSimpleBlock()
877 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
886 (I[1]->First == I[1]->Last && I + 2 != E && in tryMergeSimpleBlock()
916 return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit; in nextTwoLinesFitInto()
930 assert(!A.Last->Next); in join()
934 A.Last->Next = B.First; in join()
935 B.First->Previous = A.Last; in join()
937 unsigned LengthA = A.Last->TotalLength + B.First->SpacesRequiredBefore; in join()
940 A.Last = Tok; in join()
1064 if (Child->Last->isTrailingComment()) in formatChildren()
1070 Child->Last->TotalLength + State.Column + 2 > Style.ColumnLimit) { in formatChildren()
1085 State.Column += 1 + Child->Last->TotalLength; in formatChildren()
1398 (TheLine.Last->TotalLength + Indent <= ColumnLimit || in format()
1488 PreviousLine->Last->is(tok::l_brace) && in computeNewlines()
1507 if (PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && Newlines <= 1) in computeNewlines()
1514 if (PreviousLine->Last->is(tok::comment)) in computeNewlines()
1515 previousToken = PreviousLine->Last->getPreviousNonComment(); in computeNewlines()
1517 previousToken = PreviousLine->Last; in computeNewlines()