clang  6.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::diff::Subtree Class Reference
Collaboration diagram for clang::diff::Subtree:
Collaboration graph
[legend]

Public Member Functions

 Subtree (const SyntaxTree::Impl &Tree, NodeId SubtreeRoot)
 
int getSize () const
 
NodeId getIdInRoot (SNodeId Id) const
 
const NodegetNode (SNodeId Id) const
 
SNodeId getLeftMostDescendant (SNodeId Id) const
 
NodeId getPostorderOffset () const
 Returns the postorder index of the leftmost descendant in the subtree. More...
 
std::string getNodeValue (SNodeId Id) const
 

Public Attributes

std::vector< SNodeIdKeyRoots
 

Detailed Description

Definition at line 486 of file ASTDiff.cpp.

Constructor & Destructor Documentation

◆ Subtree()

clang::diff::Subtree::Subtree ( const SyntaxTree::Impl Tree,
NodeId  SubtreeRoot 
)
inline

Definition at line 498 of file ASTDiff.cpp.

References clang::diff::getSubtreePostorder().

Member Function Documentation

◆ getIdInRoot()

NodeId clang::diff::Subtree::getIdInRoot ( SNodeId  Id) const
inline

Definition at line 504 of file ASTDiff.cpp.

References clang::diff::SyntaxTree::Impl::getSize().

◆ getLeftMostDescendant()

SNodeId clang::diff::Subtree::getLeftMostDescendant ( SNodeId  Id) const
inline

Definition at line 511 of file ASTDiff.cpp.

References clang::diff::SyntaxTree::Impl::getSize().

◆ getNode()

const Node& clang::diff::Subtree::getNode ( SNodeId  Id) const
inline

Definition at line 508 of file ASTDiff.cpp.

References clang::diff::SyntaxTree::Impl::getNode().

◆ getNodeValue()

std::string clang::diff::Subtree::getNodeValue ( SNodeId  Id) const
inline

◆ getPostorderOffset()

NodeId clang::diff::Subtree::getPostorderOffset ( ) const
inline

Returns the postorder index of the leftmost descendant in the subtree.

Definition at line 516 of file ASTDiff.cpp.

References clang::diff::SyntaxTree::Impl::PostorderIds.

◆ getSize()

int clang::diff::Subtree::getSize ( ) const
inline

Definition at line 503 of file ASTDiff.cpp.

Referenced by clang::diff::ZhangShashaMatcher::ZhangShashaMatcher().

Member Data Documentation

◆ KeyRoots

std::vector<SNodeId> clang::diff::Subtree::KeyRoots

Definition at line 496 of file ASTDiff.cpp.


The documentation for this class was generated from the following file: