16 #ifndef LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H
17 #define LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H
47 assert(!Line.
Tokens.empty());
54 for (std::list<UnwrappedLineNode>::const_iterator I = ++Line.
Tokens.begin(),
60 Current = Current->
Next;
62 for (
const auto &Child : Node.
Children) {
72 for (
unsigned i = 0, e =
Children.size(); i != e; ++i) {
78 Current->
Role.reset();
79 Current = Current->
Next;
117 template <
typename A,
typename... Ts>
119 while (Tok && Tok->
is(tok::comment))
121 return Tok && Tok->
is(K1);
124 template <
typename A,
typename... Ts>
135 : Style(Style), Keywords(Keywords) {}
148 bool InFunctionDecl);
This file contains the declaration of the UnwrappedLineParser, which turns a stream of tokens into Un...
ast_type_traits::DynTypedNode Node