clang
9.0.0
|
Represents a selected AST node. More...
#include "clang/Tooling/Refactoring/ASTSelection.h"
Public Types | |
using | ReferenceType = std::reference_wrapper< const SelectedASTNode > |
Public Member Functions | |
SelectedASTNode (const ast_type_traits::DynTypedNode &Node, SourceSelectionKind SelectionKind) | |
SelectedASTNode (SelectedASTNode &&)=default | |
SelectedASTNode & | operator= (SelectedASTNode &&)=default |
void | dump (llvm::raw_ostream &OS=llvm::errs()) const |
Public Attributes | |
ast_type_traits::DynTypedNode | Node |
SourceSelectionKind | SelectionKind |
std::vector< SelectedASTNode > | Children |
Represents a selected AST node.
AST selection is represented using a tree of 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.
Definition at line 49 of file ASTSelection.h.
using clang::tooling::SelectedASTNode::ReferenceType = std::reference_wrapper<const SelectedASTNode> |
Definition at line 62 of file ASTSelection.h.
|
inline |
Definition at line 54 of file ASTSelection.h.
References dump().
|
default |
void SelectedASTNode::dump | ( | llvm::raw_ostream & | OS = llvm::errs() | ) | const |
Definition at line 231 of file ASTSelection.cpp.
References dump().
|
default |
std::vector<SelectedASTNode> clang::tooling::SelectedASTNode::Children |
Definition at line 52 of file ASTSelection.h.
Referenced by dump(), findDeepestWithKind(), and hasAnyDirectChildrenWithKind().
ast_type_traits::DynTypedNode clang::tooling::SelectedASTNode::Node |
Definition at line 50 of file ASTSelection.h.
Referenced by dump(), and findDeepestWithKind().
SourceSelectionKind clang::tooling::SelectedASTNode::SelectionKind |
Definition at line 51 of file ASTSelection.h.
Referenced by dump().