struct SelectedASTNode
Declaration
struct SelectedASTNode { /* full declaration omitted */ };
Description
Represents a selected AST node. AST selection is represented using a tree of \c SelectedASTNode. The tree follows the top-down shape of the actual AST. Each selected node has a selection kind. The kind might be none as the node itself might not actually be selected, e.g. a statement in macro whose child is in a macro argument.
Declared at: clang/include/clang/Tooling/Refactoring/ASTSelection.h:51
Member Variables
- public clang::DynTypedNode Node
- public clang::tooling::SourceSelectionKind SelectionKind
- public std::vector<SelectedASTNode> Children
Method Overview
- public SelectedASTNode(const clang::DynTypedNode & Node, clang::tooling::SourceSelectionKind SelectionKind)
- public SelectedASTNode(clang::tooling::SelectedASTNode &&)
- public void dump(llvm::raw_ostream & OS = llvm::errs()) const
Methods
¶SelectedASTNode(
const clang::DynTypedNode& Node,
clang::tooling::SourceSelectionKind
SelectionKind)
SelectedASTNode(
const clang::DynTypedNode& Node,
clang::tooling::SourceSelectionKind
SelectionKind)
Declared at: clang/include/clang/Tooling/Refactoring/ASTSelection.h:56
Parameters
- const clang::DynTypedNode& Node
- clang::tooling::SourceSelectionKind SelectionKind
¶SelectedASTNode(clang::tooling::SelectedASTNode&&)
SelectedASTNode(clang::tooling::SelectedASTNode&&)
Declared at: clang/include/clang/Tooling/Refactoring/ASTSelection.h:58
Parameters
¶void dump(
llvm::raw_ostream& OS = llvm::errs()) const
void dump(
llvm::raw_ostream& OS = llvm::errs()) const
Declared at: clang/include/clang/Tooling/Refactoring/ASTSelection.h:61
Parameters
- llvm::raw_ostream& OS = llvm::errs()