clang 20.0.0git
|
Represents a Clang AST node, alongside some additional information. More...
#include "clang/Tooling/ASTDiff/ASTDiff.h"
Public Member Functions | |
ASTNodeKind | getType () const |
StringRef | getTypeLabel () const |
bool | isLeaf () const |
std::optional< StringRef > | getIdentifier () const |
std::optional< std::string > | getQualifiedIdentifier () const |
Public Attributes | |
NodeId | Parent |
NodeId | LeftMostDescendant |
NodeId | RightMostDescendant |
int | Depth |
int | Height |
int | Shift = 0 |
DynTypedNode | ASTNode |
SmallVector< NodeId, 4 > | Children |
ChangeKind | Change = None |
Represents a Clang AST node, alongside some additional information.
std::optional< StringRef > clang::diff::Node::getIdentifier | ( | ) | const |
Definition at line 698 of file ASTDiff.cpp.
std::optional< std::string > clang::diff::Node::getQualifiedIdentifier | ( | ) | const |
Definition at line 690 of file ASTDiff.cpp.
ASTNodeKind clang::diff::Node::getType | ( | ) | const |
Definition at line 686 of file ASTDiff.cpp.
Referenced by clang::diff::ComparisonOptions::isMatchingAllowed().
StringRef clang::diff::Node::getTypeLabel | ( | ) | const |
Definition at line 688 of file ASTDiff.cpp.
|
inline |
DynTypedNode clang::diff::Node::ASTNode |
Definition at line 41 of file ASTDiff.h.
Referenced by clang::diff::SyntaxTree::Impl::getNodeValue(), and clang::diff::SyntaxTree::getSourceRangeOffsets().
ChangeKind clang::diff::Node::Change = None |
Definition at line 43 of file ASTDiff.h.
Referenced by clang::diff::ASTDiff::Impl::computeChangeKinds().
SmallVector<NodeId, 4> clang::diff::Node::Children |
Definition at line 42 of file ASTDiff.h.
Referenced by clang::diff::SyntaxTree::Impl::findPositionInParent(), clang::diff::getSubtreePostorder(), and isLeaf().
NodeId clang::diff::Node::Parent |
Definition at line 39 of file ASTDiff.h.
Referenced by clang::diff::SyntaxTree::Impl::findPositionInParent().
NodeId clang::diff::Node::RightMostDescendant |
Definition at line 39 of file ASTDiff.h.
Referenced by clang::diff::SyntaxTree::Impl::getNumberOfDescendants(), and clang::diff::SyntaxTree::Impl::isInSubtree().
int clang::diff::Node::Shift = 0 |
Definition at line 40 of file ASTDiff.h.
Referenced by clang::diff::SyntaxTree::Impl::findPositionInParent().