Lines Matching defs:Indent
328 // Initialize state dependent on indent.
379 ParenState(unsigned Indent, unsigned LastSpace, bool AvoidBinPacking,
381 : Indent(Indent), LastSpace(LastSpace), FirstLessLess(0),
390 unsigned Indent;
457 if (Indent != Other.Indent)
458 return Indent < Other.Indent;
594 // If we are continuing an expression, we want to indent an extra 4 spaces.
596 std::max(State.Stack.back().LastSpace, State.Stack.back().Indent) + 4;
630 State.Column = State.Stack.back().Indent;
635 State.Column = State.Stack.back().Indent;
649 State.Column = State.Stack.back().Indent;
737 if (State.Stack.back().Indent + Current.LongestObjCSelectorName >
740 State.Stack.back().Indent + Current.LongestObjCSelectorName;
748 State.Stack.back().Indent = State.Column + Spaces;
756 // parameter, i.e. let nested calls have an indent of 4.
765 // Always indent relative to the RHS of the expression unless this is a
769 State.Stack.back().Indent = State.Column;
772 // that is a binary expression) or a trailing call, indent all
817 // Indent 2 from the column, so:
823 State.Stack.back().Indent = State.Column + 2;
834 // to ensure that we indent parameters on subsequent lines by at least 4.
836 State.Stack.back().Indent += 4;
853 NewParenState.Indent =
854 std::max(std::max(State.Column, NewParenState.Indent),
857 // Always indent conditional expressions. Never indent expression where
859 // prec::Assignment) as those have different indentation rules. Indent
864 NewParenState.Indent += 4;
1248 State.Column > State.Stack.back().Indent &&
1511 // Determine indent and try to merge multiple unwrapped lines.
1515 unsigned Indent = getIndent(IndentForLevel, TheLine.Level);
1516 if (static_cast<int>(Indent) + Offset >= 0)
1517 Indent += Offset;
1518 tryFitMultipleLinesInOne(Indent, I, E);
1524 Whitespaces.replaceWhitespace(*TheLine.First, NewLines, /*Indent*/ 0,
1534 formatFirstToken(*TheLine.First, PreviousLineLastToken, Indent,
1537 Indent = LevelIndent =
1541 UnwrappedLineFormatter Formatter(Style, SourceMgr, TheLine, Indent,
1633 /// \brief Get the indent of \p Level from \p IndentForLevel.
1635 /// \p IndentForLevel must contain the indent for the level \c l
1636 /// at \p IndentForLevel[l], or a value < 0 if the indent for
1660 void tryFitMultipleLinesInOne(unsigned Indent,
1667 if (Indent > Style.ColumnLimit)
1670 unsigned Limit = Style.ColumnLimit - Indent;
1853 /// \brief Add a new line and the required indent before the first Token
1855 /// Returns the indent level of the \c UnwrappedLine.
1857 const FormatToken *PreviousToken, unsigned Indent,
1875 RootToken, Newlines, Indent, Indent,