[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-06 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286096: Deduplicate replacements by FileEntry instead of file names. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D26288?vs=77008&id=77009#toc Repository: rL LLVM https://

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-06 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 77008. ioeric added a comment. - Merge with origin/master https://reviews.llvm.org/D26288 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp unittests/Tooling/RefactoringTest.cpp Index: unitt

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-06 Thread Eric Liu via cfe-commits
ioeric added a comment. Since Manuel's comment has been addressed, I'd like to land this if there is no objection. https://reviews.llvm.org/D26288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-05 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 76975. ioeric added a comment. - addressed comments. https://reviews.llvm.org/D26288 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp unittests/Tooling/RefactoringTest.cpp Index: unittests/

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-05 Thread Manuel Klimek via cfe-commits
klimek added a comment. Ok, makes sense. Can you add a comment to the function that explains what happens with replacements for files that do not exist (we ignore them, unless I'm mistaken). Otherwise LG. https://reviews.llvm.org/D26288 ___ cfe-co

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-05 Thread Eric Liu via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D26288#587513, @klimek wrote: > In https://reviews.llvm.org/D26288#586932, @ioeric wrote: > > > - Addressed comments: handle non-existing files. > > > We're not really handling them now though? We're just printing an error? > > My point is that

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-05 Thread Manuel Klimek via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D26288#586932, @ioeric wrote: > - Addressed comments: handle non-existing files. We're not really handling them now though? We're just printing an error? My point is that we might run the replacement generation on a distributed system, and t

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Eric Liu via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D26288#586902, @klimek wrote: > If the files do not exist, how does this work? Won't that potentially give > different results if the files exist locally vs if they don't? This would be problematic. Thanks for the catch! https://reviews.llv

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 76894. ioeric added a comment. - Addressed comments: handle non-existing files. https://reviews.llvm.org/D26288 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp unittests/Tooling/Refactoring

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Manuel Klimek via cfe-commits
klimek added a comment. If the files do not exist, how does this work? Won't that potentially give different results if the files exist locally vs if they don't? https://reviews.llvm.org/D26288 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: lib/Tooling/Core/Replacement.cpp:578 + continue; +ProcessedFileEntries.insert(FE); +Result[Entry.first] = std::move(Entry.second); alexshap wrote: > (saves 2 lines of code) (although not particularly importan

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 76888. ioeric added a comment. - Kill a few lines. https://reviews.llvm.org/D26288 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp unittests/Tooling/RefactoringTest.cpp Index: unittests/To

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Alexander Shaposhnikov via cfe-commits
alexshap added inline comments. Comment at: lib/Tooling/Core/Replacement.cpp:578 + continue; +ProcessedFileEntries.insert(FE); +Result[Entry.first] = std::move(Entry.second); (saves 2 lines of code) (although not particularly important) if (Proces

[PATCH] D26288: Deduplicate replacements by FileEntry instead of file names.

2016-11-03 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: djasper. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek. The current version does not deduplicate equivalent file paths correctly. For example, a relative path and an absolute path are considered inequivalent. Compar