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()
906 void UnwrappedLineFormatter::formatFirstToken(FormatToken &RootToken, in formatFirstToken() argument
911 if (RootToken.is(tok::eof)) { in formatFirstToken()
912 unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u); in formatFirstToken()
913 Whitespaces->replaceWhitespace(RootToken, Newlines, /*IndentLevel=*/0, in formatFirstToken()
918 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken()
920 if (RootToken.is(tok::r_brace) && in formatFirstToken()
921 (!RootToken.Next || in formatFirstToken()
922 (RootToken.Next->is(tok::semi) && !RootToken.Next->Next))) in formatFirstToken()
924 if (Newlines == 0 && !RootToken.IsFirst) in formatFirstToken()
926 if (RootToken.IsFirst && !RootToken.HasUnescapedNewline) in formatFirstToken()
938 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1) in formatFirstToken()
943 (!PreviousLine->InPPDirective || !RootToken.HasUnescapedNewline)) in formatFirstToken()
946 Whitespaces->replaceWhitespace(RootToken, Newlines, IndentLevel, Indent, in formatFirstToken()
948 !RootToken.HasUnescapedNewline); in formatFirstToken()