Skip to content
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

References to static members treated differently #62185

Closed
kadircet opened this issue Apr 17, 2023 · 1 comment
Closed

References to static members treated differently #62185

kadircet opened this issue Apr 17, 2023 · 1 comment

Comments

@kadircet
Copy link
Member

kadircet commented Apr 17, 2023

we map all the member accesses to their type implicitly (to account for using-decls/bases etc.), but we don't do that for static members as they're not memberexprs, e.g:

struct Base { static int x; };
struct Foo : Base {};
Foo::^x;

we should get a reference to Foo not to declaration of x, which is in Base.

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 17, 2023

@llvm/issue-subscribers-clang-include-cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants