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

Public Member Functions

 Impl (SyntaxTree::Impl &T1, SyntaxTree::Impl &T2, const ComparisonOptions &Options)
 
void computeMapping ()
 Matches nodes one-by-one based on their similarity. More...
 
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 57 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 906 of file ASTDiff.cpp.

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 913 of file ASTDiff.cpp.

References clang::diff::ComparisonOptions::StopAfterTopDown, and TheMapping.

◆ getMapped()

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

Definition at line 71 of file ASTDiff.cpp.

Friends And Related Function Documentation

◆ ZhangShashaMatcher

friend class ZhangShashaMatcher
friend

Definition at line 108 of file ASTDiff.cpp.

Member Data Documentation

◆ T1

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

Definition at line 59 of file ASTDiff.cpp.

Referenced by computeChangeKinds().

◆ T2

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

Definition at line 59 of file ASTDiff.cpp.

Referenced by computeChangeKinds().

◆ TheMapping

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

Definition at line 60 of file ASTDiff.cpp.

Referenced by computeMapping().


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