Home
last modified time | relevance | path

Searched refs:RootToken (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Format/
DUnwrappedLineFormatter.cpp87 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()
[all …]
DUnwrappedLineFormatter.h49 void formatFirstToken(FormatToken &RootToken,