Lines Matching refs:TheLine
168 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne() local
169 if (TheLine->Last->is(TT_LineComment)) in tryFitMultipleLinesInOne()
173 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
184 Limit = TheLine->Last->TotalLength > Limit in tryFitMultipleLinesInOne()
186 : Limit - TheLine->Last->TotalLength; in tryFitMultipleLinesInOne()
195 TheLine->Level != 0); in tryFitMultipleLinesInOne()
197 if (TheLine->Last->is(TT_FunctionLBrace) && in tryFitMultipleLinesInOne()
198 TheLine->First != TheLine->Last) { in tryFitMultipleLinesInOne()
201 if (TheLine->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
212 if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine))) 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()
241 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
242 (TheLine->First->HasUnescapedNewline || TheLine->First->IsFirst)) { in tryFitMultipleLinesInOne()
822 const AnnotatedLine &TheLine = *Line; in format() local
830 TheLine.Level > RangeMinLevel || in format()
831 (TheLine.Level == RangeMinLevel && !TheLine.startsWith(tok::r_brace)); in format()
834 Indent != TheLine.First->OriginalColumn; in format()
835 bool ShouldFormat = TheLine.Affected || FixIndentation; in format()
838 if (ShouldFormat && TheLine.Type == LT_Invalid && IncompleteFormat) in format()
841 if (ShouldFormat && TheLine.Type != LT_Invalid) { in format()
843 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, Indent, in format()
844 TheLine.InPPDirective); in format()
847 unsigned ColumnLimit = getColumnLimit(TheLine.InPPDirective, NextLine); in format()
849 TheLine.Last->TotalLength + Indent <= ColumnLimit || in format()
850 TheLine.Type == LT_ImportStatement; in format()
854 .formatLine(TheLine, Indent, DryRun); in format()
857 .formatLine(TheLine, Indent, DryRun); in format()
860 .formatLine(TheLine, Indent, DryRun); in format()
861 RangeMinLevel = std::min(RangeMinLevel, TheLine.Level); in format()
865 if (TheLine.ChildrenAffected) in format()
866 format(TheLine.Children, DryRun); in format()
871 TheLine.First->NewlinesBefore > 0 || TheLine.First->IsFirst; in format()
873 IndentTracker.adjustToUnmodifiedLine(TheLine); in format()
877 TheLine.LeadingEmptyLinesAffected); in format()
880 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, in format()
881 TheLine.First->OriginalColumn, in format()
882 TheLine.InPPDirective); in format()
884 Whitespaces->addUntouchableToken(*TheLine.First, in format()
885 TheLine.InPPDirective); in format()
888 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format()
889 Whitespaces->addUntouchableToken(*Tok, TheLine.InPPDirective); in format()
895 markFinalized(TheLine.First); in format()
896 PreviousLine = &TheLine; in format()