This is an archive of the discontinued LLVM Phabricator instance.

[rename] Deduplicate symbol occurrences
AbandonedPublic

Authored by hokein on Apr 17 2019, 7:55 AM.

Details

Reviewers
arphaman
kadircet
Summary

SymbolOccurrences is not guaranteed to be unique -- as some parts of the
AST may get traversed twice, we may add duplicated occurrences, we
should deduplicate them.

Event Timeline

hokein created this revision.Apr 17 2019, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2019, 7:55 AM
kadircet accepted this revision.Apr 18 2019, 2:18 AM

Thanks

clang-tools-extra/unittests/clangd/ClangdTests.cpp
1160

maybe put the test under clang/unittests/Rename?

This revision is now accepted and ready to land.Apr 18 2019, 2:18 AM
hokein marked an inline comment as done.Apr 18 2019, 7:42 AM
hokein added inline comments.
clang-tools-extra/unittests/clangd/ClangdTests.cpp
1160

I considered it before, but it is not trivial to add the test there unfortunately :( I'd keep the test as-is.

kadircet requested changes to this revision.May 9 2019, 12:54 AM

Note that the bug has been fixed with D61596 incidentally

This revision now requires changes to proceed.May 9 2019, 12:54 AM
hokein abandoned this revision.May 24 2019, 6:34 AM