]> granicus.if.org Git - clang/commit
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)
commitd06c3a1ca07b0b1b2c674314ca3dec3fd93d9abf
treec2330efad8bb32ca0f5046911feda5d576b0a921
parent320da71d26ff59f846bfbf998eb3373fccfd760b
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

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