34 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SELECTION_H 35 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SELECTION_H 36 #include "clang/AST/ASTTypeTraits.h" 37 #include "clang/AST/PrettyPrinter.h" 38 #include "clang/Tooling/Syntax/Tokens.h" 39 #include "llvm/ADT/SmallVector.h" 75 SelectionTree(ASTContext &AST,
const syntax::TokenBuffer &Tokens,
76 unsigned Start,
unsigned End);
108 std::string
kind()
const;
124 std::deque<Node> Nodes;
126 clang::PrintingPolicy PrintPolicy;
128 void print(llvm::raw_ostream &OS,
const Node &N,
int Indent)
const;
131 T.print(OS, T.
root(), 1);
llvm::SmallVector< const Node *, 8 > Children
const Node & ignoreImplicit() const
SelectionTree(ASTContext &AST, const syntax::TokenBuffer &Tokens, unsigned Offset)
const Node & outerImplicit() const
const Node & root() const
friend llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const SelectionTree &T)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
ast_type_traits::DynTypedNode ASTNode
const Node * commonAncestor() const
const DeclContext & getDeclContext() const