]> granicus.if.org Git - clang/commit
[AST] AST structural equivalence to work internally with pairs.
authorBalazs Keri <1.int32@gmail.com>
Mon, 2 Sep 2019 11:01:09 +0000 (11:01 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 2 Sep 2019 11:01:09 +0000 (11:01 +0000)
commit54ff7330cec210a916a0b269c1c34cc31c8cc71a
tree77ed36723173e46b4e5828947dbb5f1c5245d577
parentb892807e129e6e9ecaf0a40406e7327930404afa
[AST] AST structural equivalence to work internally with pairs.

Summary:
The structural equivalence check stores now pairs of nodes in the
'from' and 'to' context instead of only the node in 'from' context
and a corresponding one in 'to' context. This is needed to handle
cases when a Decl in the 'from' context is to be compared with
multiple Decls in the 'to' context.

Reviewers: martong, a_sidorin

Reviewed By: martong, a_sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66538

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370639 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTStructuralEquivalence.h
lib/AST/ASTStructuralEquivalence.cpp
unittests/AST/StructuralEquivalenceTest.cpp