]> granicus.if.org Git - clang/commit
[clang-diff] Fix some errors and inconsistencies
authorJohannes Altmanninger <aclopte@gmail.com>
Fri, 18 Aug 2017 16:34:15 +0000 (16:34 +0000)
committerJohannes Altmanninger <aclopte@gmail.com>
Fri, 18 Aug 2017 16:34:15 +0000 (16:34 +0000)
commit7fe9c979c5ab07417d9b9424cf3d3640172bcc13
treecb1f644fef1a8c35b2bda63647e57ecc16b1cf98
parent84dc519667a4f06ed078f08eff2372a223a50b3e
[clang-diff] Fix some errors and inconsistencies

Fix to the computation of the rightmost descendant.

Prevents root nodes from being mapped if they are already mapped.  This
only makes a difference when we compare AST Nodes other than entire
translation units, a feature which still has to be tested.

Reviewers: arphaman

Subscribers: klimek

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311172 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/ASTDiff/ASTDiff.h
include/clang/Tooling/ASTDiff/ASTDiffInternal.h
lib/Tooling/ASTDiff/ASTDiff.cpp