Lines Matching refs:Last
240 if (TheLine->Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
257 Limit = TheLine->Last->TotalLength > Limit in tryFitMultipleLinesInOne()
259 : Limit - TheLine->Last->TotalLength; in tryFitMultipleLinesInOne()
261 if (TheLine->Last->is(TT_FunctionLBrace) && in tryFitMultipleLinesInOne()
262 TheLine->First == TheLine->Last && in tryFitMultipleLinesInOne()
270 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne()
271 TheLine->First == TheLine->Last) { in tryFitMultipleLinesInOne()
312 if (Style.isJavaScript() && TheLine->Last->is(TT_FunctionLBrace)) in tryFitMultipleLinesInOne()
335 const FormatToken *LastNonComment = Line->Last; in tryFitMultipleLinesInOne()
368 I[i + 1]->Last->TotalLength < Limit; in tryFitMultipleLinesInOne()
373 Limit -= I[i + 1]->Last->TotalLength; in tryFitMultipleLinesInOne()
387 I[i + 1]->First->SpacesRequiredBefore = !I[i]->Last->is(tok::r_brace); in tryFitMultipleLinesInOne()
397 if (TheLine->Last->is(TT_FunctionLBrace) && TheLine->First != TheLine->Last) in tryFitMultipleLinesInOne()
400 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
420 TheLine->Last->TotalLength <= in tryFitMultipleLinesInOne()
441 TheLine->Last->TotalLength <= Style.ColumnLimit) in tryFitMultipleLinesInOne()
473 TheLine->Last->is(tok::l_brace) && PreviousLine->Last) { in tryFitMultipleLinesInOne()
474 const FormatToken *Previous = PreviousLine->Last; in tryFitMultipleLinesInOne()
493 if (TheLine->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
496 if (TheLine->Last->is(TT_EnumLBrace)) { in tryFitMultipleLinesInOne()
498 } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { in tryFitMultipleLinesInOne()
521 if (NextLine.Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
532 NextLine.First == NextLine.Last && I + 2 != E && in tryFitMultipleLinesInOne()
583 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimplePPDirective()
606 !Line.Last->is(tok::kw_else) && Line.Last->isNot(tok::r_paren)) { in tryMergeSimpleControlStatement()
610 if (Line.First->is(tok::kw_do) && !Line.Last->is(tok::kw_do)) in tryMergeSimpleControlStatement()
612 if (1 + I[1]->Last->TotalLength > Limit) in tryMergeSimpleControlStatement()
638 if (I[0]->Last->is(tok::l_brace) || I[1]->First->is(tok::l_brace)) in tryMergeShortCaseLabels()
673 if (Line->Last->is(tok::comment)) in tryMergeShortCaseLabels()
675 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
763 if (Line.Last->is(tok::l_brace)) { in tryMergeSimpleBlock()
780 if (isRecordLBrace(*Line.Last)) in tryMergeSimpleBlock()
793 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
816 if (Line.First == Line.Last && Line.First->isNot(TT_FunctionLBrace) && in tryMergeSimpleBlock()
825 if (I[1]->Last->is(TT_LineComment)) in tryMergeSimpleBlock()
834 (I[1]->First == I[1]->Last && I + 2 != E && in tryMergeSimpleBlock()
864 return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit; in nextTwoLinesFitInto()
875 assert(!A.Last->Next); in join()
879 A.Last->Next = B.First; in join()
880 B.First->Previous = A.Last; in join()
882 unsigned LengthA = A.Last->TotalLength + B.First->SpacesRequiredBefore; in join()
885 A.Last = Tok; in join()
999 if (Child->Last->isTrailingComment()) in formatChildren()
1005 Child->Last->TotalLength + State.Column + 2 > Style.ColumnLimit) { in formatChildren()
1018 State.Column += 1 + Child->Last->TotalLength; in formatChildren()
1330 TheLine.Last->TotalLength + Indent <= ColumnLimit || in format()
1425 PreviousLine->Last->is(tok::l_brace) && in formatFirstToken()
1444 if (PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && Newlines <= 1) in formatFirstToken()
1451 if (PreviousLine->Last->is(tok::comment)) in formatFirstToken()
1452 previousToken = PreviousLine->Last->getPreviousNonComment(); in formatFirstToken()
1454 previousToken = PreviousLine->Last; in formatFirstToken()