Go to the documentation of this file.
9 #ifndef LLVM_CLANG_TOOLING_REFACTORING_ASTSELECTION_H
10 #define LLVM_CLANG_TOOLING_REFACTORING_ASTSELECTION_H
16 #include "llvm/Support/raw_ostream.h"
61 void dump(llvm::raw_ostream &OS = llvm::errs())
const;
105 if (!AreChildrenSelected)
107 return SelectedNode.get().Children.size();
111 if (!AreChildrenSelected) {
112 assert(I == 0 &&
"Invalid index");
113 return SelectedNode.get().Node.get<
Stmt>();
115 return SelectedNode.get().Children[I].Node.get<
Stmt>();
139 bool AreChildrenSelected)
140 : SelectedNode(SelectedNode), Parents(Parents.begin(), Parents.end()),
141 AreChildrenSelected(AreChildrenSelected) {}
149 bool AreChildrenSelected;
155 #endif // LLVM_CLANG_TOOLING_REFACTORING_ASTSELECTION_H
A trivial tuple used to represent a source range.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Decl - This represents one declaration (or definition), e.g.
Stmt - This represents one statement.
A dynamically typed AST node container.