clang 22.0.0git
clang::diff::ASTDiff::Impl Class Reference

Public Member Functions

 Impl (SyntaxTree::Impl &T1, SyntaxTree::Impl &T2, const ComparisonOptions &Options)
void computeMapping ()
 Matches nodes one-by-one based on their similarity.
void computeChangeKinds (Mapping &M)
NodeId getMapped (const std::unique_ptr< SyntaxTree::Impl > &Tree, NodeId Id) const

Public Attributes

SyntaxTree::ImplT1
SyntaxTree::ImplT2
Mapping TheMapping

Friends

class ZhangShashaMatcher

Detailed Description

Definition at line 58 of file ASTDiff.cpp.

Constructor & Destructor Documentation

◆ Impl()

clang::diff::ASTDiff::Impl::Impl ( SyntaxTree::Impl & T1,
SyntaxTree::Impl & T2,
const ComparisonOptions & Options )

Definition at line 903 of file ASTDiff.cpp.

References computeChangeKinds(), computeMapping(), T1, T2, and TheMapping.

Member Function Documentation

◆ computeChangeKinds()

void clang::diff::ASTDiff::Impl::computeChangeKinds ( Mapping & M)

◆ computeMapping()

void clang::diff::ASTDiff::Impl::computeMapping ( )

Matches nodes one-by-one based on their similarity.

Definition at line 910 of file ASTDiff.cpp.

References TheMapping.

Referenced by Impl().

◆ getMapped()

NodeId clang::diff::ASTDiff::Impl::getMapped ( const std::unique_ptr< SyntaxTree::Impl > & Tree,
NodeId Id ) const
inline

Definition at line 72 of file ASTDiff.cpp.

References T1, T2, and TheMapping.

◆ ZhangShashaMatcher

friend class ZhangShashaMatcher
friend

Definition at line 109 of file ASTDiff.cpp.

References ZhangShashaMatcher.

Referenced by ZhangShashaMatcher.

Member Data Documentation

◆ T1

SyntaxTree::Impl& clang::diff::ASTDiff::Impl::T1

Definition at line 60 of file ASTDiff.cpp.

Referenced by computeChangeKinds(), getMapped(), and Impl().

◆ T2

SyntaxTree::Impl & clang::diff::ASTDiff::Impl::T2

Definition at line 60 of file ASTDiff.cpp.

Referenced by computeChangeKinds(), getMapped(), and Impl().

◆ TheMapping

Mapping clang::diff::ASTDiff::Impl::TheMapping

Definition at line 61 of file ASTDiff.cpp.

Referenced by computeMapping(), getMapped(), and Impl().


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