16 #ifndef LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H 17 #define LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H 49 assert(!Line.
Tokens.empty());
56 for (std::list<UnwrappedLineNode>::const_iterator I = ++Line.
Tokens.begin(),
60 Current->
Next = I->Tok;
61 I->Tok->Previous = Current;
62 Current = Current->
Next;
64 for (
const auto &Child : Node.
Children) {
74 for (
unsigned i = 0, e =
Children.size(); i != e; ++i) {
80 Current->
Role.reset();
81 Current = Current->
Next;
87 template <
typename... Ts>
bool startsWith(Ts... Tokens)
const {
95 template <
typename... Ts>
bool endsWith(Ts... Tokens)
const {
146 : Style(Style), Keywords(Keywords) {}
159 bool InFunctionDecl);
170 bool mustBreakForReturnType(
const AnnotatedLine &Line)
const;
const AnnotatedLine * Line
This file contains the declaration of the UnwrappedLineParser, which turns a stream of tokens into Un...
ast_type_traits::DynTypedNode Node
Dataflow Directional Tag Classes.