New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-to-definition on enum member defined in class template #296
Comments
This is a more general issue which I've filed as #297. |
That's not quite true -- unlike the example in #297, here the name template <typename T>
struct Foo {
enum class E { [[A]], B };
E e = E::A^;
};
template <>
enum class Foo<int>::E { H, [[A]] }; Here, there are two candidate declarations that the reference Navigation to the declaration in the primary template is still reasonable as a heuristic, but we should probably keep the color as |
…merators Fixes clangd/clangd#296 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76103
…merators Fixes clangd/clangd#296 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76103
…merators Fixes clangd/clangd#296 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76103
In the following code:
Go-to-definition at the indicated location does not take you to the definition of the enumerator
A
.(The use of
A
is also highlighted asDependentName
rather thanEnumerator
-- that also seems unexpected to me.)The text was updated successfully, but these errors were encountered: