clang 20.0.0git
|
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 DynTypedNode &Node, SourceSelectionKind SelectionKind) | |
SelectedASTNode (SelectedASTNode &&)=default | |
SelectedASTNode & | operator= (SelectedASTNode &&)=default |
void | dump (llvm::raw_ostream &OS=llvm::errs()) const |
Public Attributes | |
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 52 of file ASTSelection.h.
using clang::tooling::SelectedASTNode::ReferenceType = std::reference_wrapper<const SelectedASTNode> |
Definition at line 64 of file ASTSelection.h.
|
inline |
Definition at line 57 of file ASTSelection.h.
|
default |
void SelectedASTNode::dump | ( | llvm::raw_ostream & | OS = llvm::errs() | ) | const |
|
default |
std::vector<SelectedASTNode> clang::tooling::SelectedASTNode::Children |
Definition at line 55 of file ASTSelection.h.
Referenced by findDeepestWithKind().
DynTypedNode clang::tooling::SelectedASTNode::Node |
Definition at line 53 of file ASTSelection.h.
Referenced by findDeepestWithKind().
SourceSelectionKind clang::tooling::SelectedASTNode::SelectionKind |
Definition at line 54 of file ASTSelection.h.