• Home
  • Raw
  • Download

Lines Matching refs:First

22   const FormatToken *Next = Line.First->getNextNonComment();  in startsExternCBlock()
53 Offset = getIndentOffset(*Line.First); in nextLine()
74 unsigned LevelIndent = Line.First->OriginalColumn; in adjustToUnmodifiedLine()
77 if ((!Line.First->is(tok::comment) || IndentForLevel[Line.Level] == -1) && in adjustToUnmodifiedLine()
149 if (Next[i + 1]->First->NewlinesBefore > 0) in getNextMergedLine()
171 if (I[1]->Type == LT_Invalid || I[1]->First->MustBreakBefore) in tryFitMultipleLinesInOne()
174 (!I[1]->InPPDirective || I[1]->First->HasUnescapedNewline)) in tryFitMultipleLinesInOne()
193 I[1]->First->is(tok::r_brace)) || in tryFitMultipleLinesInOne()
198 TheLine->First != TheLine->Last) { in tryFitMultipleLinesInOne()
206 if (I[1]->First->is(TT_FunctionLBrace) && in tryFitMultipleLinesInOne()
226 if (TheLine->First->is(tok::kw_if)) { in tryFitMultipleLinesInOne()
231 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while)) { in tryFitMultipleLinesInOne()
236 if (TheLine->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryFitMultipleLinesInOne()
242 (TheLine->First->HasUnescapedNewline || TheLine->First->IsFirst)) { in tryFitMultipleLinesInOne()
254 if (I + 2 != E && I[2]->InPPDirective && !I[2]->First->HasUnescapedNewline) in tryMergeSimplePPDirective()
267 (I[1]->First->is(tok::l_brace) && !Style.AllowShortBlocksOnASingleLine)) in tryMergeSimpleControlStatement()
270 (I[1]->InPPDirective && I[1]->First->HasUnescapedNewline)) in tryMergeSimpleControlStatement()
278 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while, in tryMergeSimpleControlStatement()
283 I[2]->First->is(tok::kw_else)) in tryMergeSimpleControlStatement()
293 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) in tryMergeShortCaseLabels()
304 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
306 if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch, in tryMergeShortCaseLabels()
327 Line.First->isOneOf(tok::at, tok::minus, tok::plus)) in tryMergeSimpleBlock()
332 if (Line.First->isOneOf(tok::kw_else, tok::kw_case) || in tryMergeSimpleBlock()
333 (Line.First->Next && Line.First->Next->is(tok::kw_else))) in tryMergeSimpleBlock()
335 if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::kw_try, in tryMergeSimpleBlock()
344 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for)) in tryMergeSimpleBlock()
351 if (Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch, in tryMergeSimpleBlock()
356 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock()
367 if (Line.First->isOneOf(tok::kw_class, tok::kw_union, tok::kw_struct, in tryMergeSimpleBlock()
390 Tok = I[2]->First; in tryMergeSimpleBlock()
410 !I[1]->First->HasUnescapedNewline && !I[1]->First->is(tok::eof)) { in limitConsideringMacros()
418 if (I[1]->First->MustBreakBefore || I[2]->First->MustBreakBefore) in nextTwoLinesFitInto()
424 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak()
433 assert(!B.First->Previous); in join()
436 A.Last->Next = B.First; in join()
437 B.First->Previous = A.Last; in join()
438 B.First->CanBreakBefore = true; in join()
439 unsigned LengthA = A.Last->TotalLength + B.First->SpacesRequiredBefore; in join()
440 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join()
457 markFinalized(Child->First); in markFinalized()
529 if (Previous.Children[0]->First->MustBreakBefore) in formatChildren()
553 *Previous.Children[0]->First, in formatChildren()
834 Indent != TheLine.First->OriginalColumn; in format()
843 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, Indent, in format()
871 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format()
880 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, in format()
881 TheLine.First->OriginalColumn, in format()
884 Whitespaces->addUntouchableToken(*TheLine.First, in format()
888 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format()
895 markFinalized(TheLine.First); in format()
928 PreviousLine->First->isNot(tok::kw_namespace) && in formatFirstToken()
938 if (PreviousLine && PreviousLine->First->isAccessSpecifier() && in formatFirstToken()
960 !NextLine->First->HasUnescapedNewline)); in getColumnLimit()