clang 22.0.0git
|
Implementation of Zhang and Shasha's Algorithm for tree edit distance. More...
Public Member Functions | |
ZhangShashaMatcher (const ASTDiff::Impl &DiffImpl, const SyntaxTree::Impl &T1, const SyntaxTree::Impl &T2, NodeId Id1, NodeId Id2) | |
std::vector< std::pair< NodeId, NodeId > > | getMatchingNodes () |
Implementation of Zhang and Shasha's Algorithm for tree edit distance.
Computes an optimal mapping between two trees using only insertion, deletion and update as edit actions (similar to the Levenshtein distance).
Definition at line 559 of file ASTDiff.cpp.
|
inline |
Definition at line 566 of file ASTDiff.cpp.
|
inline |
Definition at line 579 of file ASTDiff.cpp.