Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DFormat.cpp983 int getIndentOffset(const FormatToken &RootToken) { in getIndentOffset() argument
984 if (RootToken.isAccessSpecifier(false) || RootToken.isObjCAccessSpecifier()) in getIndentOffset()
991 void formatFirstToken(FormatToken &RootToken, in formatFirstToken() argument
995 std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1); in formatFirstToken()
997 if (RootToken.is(tok::r_brace) && in formatFirstToken()
998 (!RootToken.Next || in formatFirstToken()
999 (RootToken.Next->is(tok::semi) && !RootToken.Next->Next))) in formatFirstToken()
1001 if (Newlines == 0 && !RootToken.IsFirst) in formatFirstToken()
1003 if (RootToken.IsFirst && !RootToken.HasUnescapedNewline) in formatFirstToken()
1014 RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1) in formatFirstToken()
[all …]