Deduplicate replacements by FileEntry instead of file names.
authorEric Liu <ioeric@google.com>
Mon, 7 Nov 2016 06:08:23 +0000 (06:08 +0000)
committerEric Liu <ioeric@google.com>
Mon, 7 Nov 2016 06:08:23 +0000 (06:08 +0000)
commitcf2913c6f12fbade57640c3410eb95d05baa27e5
treec159262c42184301d0e9ebbe3669ffa8c878d2d3
parentc988b334b6a97a87b887df7aa22500961faf7701
Deduplicate replacements by FileEntry instead of file names.

Summary:
The current version does not deduplicate equivalent file paths correctly.
For example, a relative path and an absolute path are considered inequivalent.
Comparing FileEnry addresses these issues.

Reviewers: djasper

Subscribers: alexshap, klimek, cfe-commits

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

llvm-svn: 286096
clang/include/clang/Tooling/Core/Replacement.h
clang/lib/Tooling/Core/Replacement.cpp
clang/lib/Tooling/Refactoring.cpp
clang/unittests/Tooling/RefactoringTest.cpp