Lines Matching defs:TheLine
387 AnnotatedLine *TheLine = *I;
388 if (TheLine->Last->Type == TT_LineComment)
398 Limit = TheLine->Last->TotalLength > Limit
400 : Limit - TheLine->Last->TotalLength;
405 if (TheLine->Last->is(tok::l_brace)) {
408 TheLine->First->is(tok::kw_if)) {
411 TheLine->First->isOneOf(tok::kw_for, tok::kw_while)) {
413 } else if (TheLine->InPPDirective && (TheLine->First->HasUnescapedNewline ||
414 TheLine->First->IsFirst)) {
550 const AnnotatedLine &TheLine = **I;
551 const FormatToken *FirstTok = TheLine.First;
557 if (!FormatPPDirective && TheLine.InPPDirective &&
558 (touchesLine(TheLine) || touchesPPDirective(I + 1, E)))
562 while (IndentForLevel.size() <= TheLine.Level)
564 IndentForLevel.resize(TheLine.Level + 1);
565 unsigned Indent = getIndent(IndentForLevel, TheLine.Level);
577 if (TheLine.First->is(tok::eof)) {
580 Whitespaces->replaceWhitespace(*TheLine.First, Newlines,
584 } else if (TheLine.Type != LT_Invalid &&
585 (WasMoved || FormatPPDirective || touchesLine(TheLine))) {
587 getIndent(IndentForLevel, TheLine.Level);
590 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level,
591 Indent, TheLine.InPPDirective);
601 ColumnLimit = getColumnLimit(TheLine.InPPDirective);
604 if (TheLine.Last->TotalLength + Indent <= ColumnLimit) {
605 LineState State = Indenter->getInitialState(Indent, &TheLine, DryRun);
611 Formatter.format(Indent, &TheLine);
613 Penalty += format(TheLine, Indent, DryRun);
616 IndentForLevel[TheLine.Level] = LevelIndent;
621 for (FormatToken *Tok = TheLine.First; Tok != NULL; Tok = Tok->Next) {
622 if (Tok == TheLine.First &&
628 if (PreviousLineWasTouched || touchesEmptyLineBefore(TheLine)) {
629 formatFirstToken(*Tok, PreviousLine, TheLine.Level, LevelIndent,
630 TheLine.InPPDirective);
632 Whitespaces->addUntouchableToken(*Tok, TheLine.InPPDirective);
639 IndentForLevel[TheLine.Level] = LevelIndent;
641 Whitespaces->addUntouchableToken(*Tok, TheLine.InPPDirective);
650 for (FormatToken *Tok = TheLine.First; Tok != NULL; Tok = Tok->Next) {
782 bool touchesLine(const AnnotatedLine &TheLine) {
783 const FormatToken *First = TheLine.First;
784 const FormatToken *Last = TheLine.Last;
804 bool touchesEmptyLineBefore(const AnnotatedLine &TheLine) {
805 const FormatToken *First = TheLine.First;
1333 virtual void consumeUnwrappedLine(const UnwrappedLine &TheLine) {
1335 UnwrappedLines.back().push_back(TheLine);