Home | History | Annotate | Download | only in Format

Lines Matching refs:Indent

196   void indentBlockComment(const FormatToken &Tok, int Indent) {
198 int IndentDelta = Indent - SourceMgr.getSpellingColumnNumber(TokenLoc) + 1;
318 // Initialize state dependent on indent.
368 ParenState(unsigned Indent, unsigned LastSpace, bool AvoidBinPacking,
370 : Indent(Indent), LastSpace(LastSpace), FirstLessLess(0),
378 unsigned Indent;
421 if (Indent != Other.Indent)
422 return Indent < Other.Indent;
535 // Indent and extra 4 spaces after if we know the current expression is
536 // continued. Don't do that on the top level, as we already indent 4
539 State.Stack.back().Indent) + 4;
548 State.Column = State.Stack.back().Indent - 4;
554 State.Column = State.Stack.back().Indent;
560 State.Column = State.Stack.back().Indent + 4;
562 State.Column = State.Stack.back().Indent;
621 if (State.Stack.back().Indent + Current.LongestObjCSelectorName >
624 State.Stack.back().Indent + Current.LongestObjCSelectorName;
633 State.Stack.back().Indent = State.Column + Spaces;
640 // parameter, i.e. let nested calls have an indent of 4.
651 State.Stack.back().Indent = State.Column;
655 // If this function has multiple parameters, indent nested calls from
688 NewParenState.Indent = std::max(State.Column, State.Stack.back().Indent);
1201 Whitespaces.replaceWhitespace(TheLine.First, NewLines, /*Indent*/ 0,
1207 unsigned Indent = LevelIndent;
1208 if (static_cast<int>(Indent) + Offset >= 0)
1209 Indent += Offset;
1211 Indent = LevelIndent = SourceMgr.getSpellingColumnNumber(
1214 formatFirstToken(TheLine.First, Indent, TheLine.InPPDirective,
1217 tryFitMultipleLinesInOne(Indent, I, E);
1218 UnwrappedLineFormatter Formatter(Style, SourceMgr, TheLine, Indent,
1227 unsigned Indent =
1229 unsigned LevelIndent = Indent;
1236 formatFirstToken(TheLine.First, Indent, TheLine.InPPDirective,
1290 /// \brief Get the indent of \p Level from \p IndentForLevel.
1292 /// \p IndentForLevel must contain the indent for the level \c l
1293 /// at \p IndentForLevel[l], or a value < 0 if the indent for
1329 void tryFitMultipleLinesInOne(unsigned Indent,
1336 unsigned Limit = Style.ColumnLimit - Indent;
1493 /// \brief Add a new line and the required indent before the first Token
1495 /// Returns the indent level of the \c UnwrappedLine.
1496 void formatFirstToken(const AnnotatedToken &RootToken, unsigned Indent,
1506 Whitespaces.replaceWhitespace(RootToken, Newlines, Indent, 0, Style);
1508 Whitespaces.replacePPWhitespace(RootToken, Newlines, Indent,