Go to the documentation of this file.
42 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SELECTION_H
43 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SELECTION_H
44 #include "clang/AST/ASTTypeTraits.h"
45 #include "clang/AST/PrettyPrinter.h"
46 #include "clang/Tooling/Syntax/Tokens.h"
47 #include "llvm/ADT/SmallVector.h"
86 static bool createEach(ASTContext &
AST,
const syntax::TokenBuffer &Tokens,
87 unsigned Begin,
unsigned End,
95 const syntax::TokenBuffer &Tokens,
96 unsigned Begin,
unsigned End);
135 std::string
kind()
const;
154 unsigned Start,
unsigned End);
156 std::deque<Node> Nodes;
158 clang::PrintingPolicy PrintPolicy;
160 void print(llvm::raw_ostream &
OS,
const Node &N,
int Indent)
const;
llvm::SmallVector< const Node *, 8 > Children
const Node & ignoreImplicit() const
static bool createEach(ASTContext &AST, const syntax::TokenBuffer &Tokens, unsigned Begin, unsigned End, llvm::function_ref< bool(SelectionTree)> Func)
SelectionTree & operator=(const SelectionTree &)=delete
const Node & outerImplicit() const
static SelectionTree createRight(ASTContext &AST, const syntax::TokenBuffer &Tokens, unsigned Begin, unsigned End)
friend llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const SelectionTree &T)
const Node * commonAncestor() const
ast_type_traits::DynTypedNode ASTNode
SelectionTree(const SelectionTree &)=delete
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_string_ostream OS
const DeclContext & getDeclContext() const
const Node & root() const