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