[PATCH] D73088: [clangd] Capture the missing injected class names in findExplicitReferences.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 21 06:12:54 PST 2020
hokein added a comment.
In D73088#1830960 <https://reviews.llvm.org/D73088#1830960>, @kbobyrev wrote:
> It would also be great to have the original rename test from the linked issue since something might potentially go wrong in-between `findExplicitReferences`.
Done.
> and rename action (and also to expand the testset because the existing one is not really extensive :().
yeap, there is some room to improve the test code here (e.g. using an idea similar to `CodeContext` in `TweakTesting`), previously we put the test code to a wrapper `foo` function, it is sufficient for most cases, but not for this patch as defining a template class in a function body is forbidden in C++. I think we can adress this afterwards.
================
Comment at: clang-tools-extra/clangd/unittests/FindTargetTests.cpp:736
+ template <typename $0^T>
+ class $1^$2^Bar {
+ ~$3^Bar();
----------------
kadircet wrote:
> kadircet wrote:
> > looks like we are getting duplicates here
> looking at this again, this is actually not caused by this change, it was always there we just didn't notice it before since no one tested class templates.
>
> could you put a fixme on it?
Done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73088/new/
https://reviews.llvm.org/D73088
More information about the cfe-commits
mailing list