]> granicus.if.org Git - clang/commit
Tooling: Ignore file names in tooling::deduplicate.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 9 Sep 2014 13:53:29 +0000 (13:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 9 Sep 2014 13:53:29 +0000 (13:53 +0000)
commit62d3f3f44d58b49fe769fc36ae0d2eeb386c36a0
tree6f000abb19b95529e9eded8e98924a2d4aa22e6b
parent885f51439b619bfc42e47c70bd3404ceedcf259f
Tooling: Ignore file names in tooling::deduplicate.

This was horribly broken due to how the sort predicate works. We would
report a conflict for files with a replacement in the same position but
different names if the length differed. Just ignore paths as this is often
what the user wants. Files can occur with different names (due to symlinks
or relative paths) and we don't ever want to do the same edit in one file
twice.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217439 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Refactoring.h
lib/Tooling/Refactoring.cpp
unittests/Tooling/RefactoringTest.cpp