Lines Matching full:indent
28 /// \brief Tracks the indent level of \c AnnotatedLines across levels.
31 /// getIndent() will return the indent for the last line \c nextLine was called
33 /// If the line is not formatted (and thus the indent does not change), calling
47 /// \brief Returns the indent for the current line.
48 unsigned getIndent() const { return Indent; }
50 /// \brief Update the indent state given that \p Line is going to be formatted
54 // Update the indent level cache size so that we can rely on it
59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent;
62 Indent = getIndent(IndentForLevel, Line.Level);
64 if (static_cast<int>(Indent) + Offset >= 0)
65 Indent += Offset;
68 /// \brief Update the level indent to adapt to the given \p Line.
71 /// level to the same indent.
99 /// \brief Get the indent of \p Level from \p IndentForLevel.
101 /// \p IndentForLevel must contain the indent for the level \c l
102 /// at \p IndentForLevel[l], or a value < 0 if the indent for
116 /// \brief The indent in characters for each level.
119 /// \brief Offset of the current line relative to the indent level.
125 /// \brief The current line's indent.
126 unsigned Indent = 0;
161 tryFitMultipleLinesInOne(unsigned Indent,
177 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit)
181 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent;
465 llvm::dbgs() << P.Indent << "|" << P.LastSpace << "|" << P.NestedBlockIndent
520 int AdditionalIndent = State.Stack.back().Indent -
823 unsigned Indent = IndentTracker.getIndent();
825 // We continue formatting unchanged lines to adjust their indent, e.g. if a
834 Indent != TheLine.First->OriginalColumn;
843 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, Indent,
849 TheLine.Last->TotalLength + Indent <= ColumnLimit ||
854 .formatLine(TheLine, Indent, DryRun);
857 Indent, DryRun);
860 .formatLine(TheLine, Indent, DryRun);
868 // Adapt following lines on the current indent level to the same level
905 unsigned Indent,
942 Whitespaces->replaceWhitespace(RootToken, Newlines, IndentLevel, Indent,
943 Indent, InPPDirective &&