Lines Matching refs:First

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