Lines Matching refs:RootToken
87 int getIndentOffset(const FormatToken &RootToken) { in getIndentOffset() argument
91 if (RootToken.isAccessSpecifier(false) || in getIndentOffset()
92 RootToken.isObjCAccessSpecifier() || in getIndentOffset()
93 (RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset()
94 RootToken.Next && RootToken.Next->is(tok::colon))) in getIndentOffset()
902 void UnwrappedLineFormatter::formatFirstToken(FormatToken &RootToken, in formatFirstToken() argument
907 if (RootToken.is(tok::eof)) { in formatFirstToken()
908 unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u); in formatFirstToken()
909 Whitespaces->replaceWhitespace(RootToken, Newlines, /*IndentLevel=*/0, in formatFirstToken()
914 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken()
916 if (RootToken.is(tok::r_brace) && in formatFirstToken()
917 (!RootToken.Next || in formatFirstToken()
918 (RootToken.Next->is(tok::semi) && !RootToken.Next->Next))) in formatFirstToken()
920 if (Newlines == 0 && !RootToken.IsFirst) in formatFirstToken()
922 if (RootToken.IsFirst && !RootToken.HasUnescapedNewline) in formatFirstToken()
934 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1) in formatFirstToken()
939 (!PreviousLine->InPPDirective || !RootToken.HasUnescapedNewline)) in formatFirstToken()
942 Whitespaces->replaceWhitespace(RootToken, Newlines, IndentLevel, Indent, in formatFirstToken()
944 !RootToken.HasUnescapedNewline); in formatFirstToken()