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

Show definition of underlying struct when hovering over a typedef #2020

Open
HighCommander4 opened this issue Apr 22, 2024 · 1 comment · May be fixed by llvm/llvm-project#89570
Open

Show definition of underlying struct when hovering over a typedef #2020

HighCommander4 opened this issue Apr 22, 2024 · 1 comment · May be fixed by llvm/llvm-project#89570
Assignees
Labels
enhancement New feature or request

Comments

@HighCommander4
Copy link

In #959, I posted a patch to show the public fields of the struct when hovering over a struct name.

In some codebases, structs are typically referred to via a typedef (especially in C, where a typedef allows omitting the struct keyword), so it would be helpful to extend this to also show the struct members when hovering over a typedef that resolves to a struct name.

@HighCommander4 HighCommander4 added the enhancement New feature or request label Apr 22, 2024
@HighCommander4 HighCommander4 self-assigned this Apr 22, 2024
HighCommander4 added a commit to HighCommander4/llvm-project that referenced this issue Apr 22, 2024
@HighCommander4 HighCommander4 changed the title Show struct members when hovering over a typedef Show definition of underlying struct when hovering over a typedef Apr 25, 2024
@HighCommander4
Copy link
Author

This can actually be decoupled from #959. I adjusted the title of this issue to track a more general change where, when hovering over a typedef to a struct, the definition of the underlying struct is shown in addition to the definition of the typedef.

This is orthogonal to whether the definition of the struct that's shown includes its members (#959).

HighCommander4 added a commit to HighCommander4/llvm-project that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant