]> granicus.if.org Git - clang/commit
[clang-diff] Simplify mapping
authorJohannes Altmanninger <aclopte@gmail.com>
Sat, 19 Aug 2017 17:53:01 +0000 (17:53 +0000)
committerJohannes Altmanninger <aclopte@gmail.com>
Sat, 19 Aug 2017 17:53:01 +0000 (17:53 +0000)
commitc778ea4b266d5fdcf3ab2d2509b19083bc43a91e
treee2ae42f0c6c22604d40e699dd8071d36a9ae3e6b
parent6f7e9aa48c4820979d278ff3ee5d597fa2e35b31
[clang-diff] Simplify mapping

Summary:
Until we find a decent heuristic on how to choose between multiple
identical trees, there is no point in supporting multiple mappings.

This also enables matching of nodes with parents of different types,
because there are many instances where this is appropriate.  For
example for and foreach statements; functions in the global or
other namespaces.

Reviewers: arphaman

Subscribers: klimek

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311251 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/ASTDiff/ASTDiff.h
lib/Tooling/ASTDiff/ASTDiff.cpp
test/Tooling/Inputs/clang-diff-basic-src.cpp
test/Tooling/clang-diff-basic.cpp