-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Anonymous struct shouldn't be named as (anonymous)
#290
Comments
Hello @languagelawyer, thank you for your continuous support! That is in fact a little embarrassing, up to this point unions where not supported at all. They were shown as struct all the time. The second thing which is wrong is the handling of anonymous structs, hence the
The troublemaker is Andreas |
To this point unions where shown as a struct, as Clang internally models them as a CXXRecordDecl. Also unsupported where anonymous structs. Due to the declaration order in Clang a name based on line/column prefixed with `__anon_` is made up to be able to refer to the struct later in a `FieldDecl`.
To this point unions where shown as a struct, as Clang internally models them as a CXXRecordDecl. Also unsupported where anonymous structs. Due to the declaration order in Clang a name based on line/column prefixed with `__anon_` is made up to be able to refer to the struct later in a `FieldDecl`.
Fixed #290: Added support for unions and anonymous structs.
For the code below
cppinsigths produces
The text was updated successfully, but these errors were encountered: