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 "llvm/ADT/SmallVector.h" 109 std::deque<Node> Nodes;
111 clang::PrintingPolicy PrintPolicy;
113 void print(llvm::raw_ostream &OS,
const Node &N,
int Indent)
const;
116 if (
auto R = T.
root())
119 OS <<
"(empty selection)\n";
const Node * root() const
llvm::SmallVector< const Node *, 8 > Children
friend llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const SelectionTree &T)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
ast_type_traits::DynTypedNode ASTNode
SelectionTree(ASTContext &AST, unsigned Offset)
const Node * commonAncestor() const
const DeclContext & getDeclContext() const