-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Add C23 enum types and packing attributes support for C parser #8202
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
base: master
Are you sure you want to change the base?
Conversation
|
Oh, I just read the comments in the original issue, maybe automatic resizing should be removed? |
|
I've added handling for Could you please link any relevant issues? I think there are more of them than I found. |
|
Oh, I was unaware that a separate PR existed for packed attributes. |
|
I hope so but things here move slowly... |
397eff7 to
fe019f4
Compare
fe019f4 to
a46a36c
Compare
|
Could someone review any of these PRs? The option to specify the size of an enum is useful when generating C code for Ghidra to parse, but having to build a custom version every time I need to do so is very troublesome |
a46a36c to
93605f9
Compare
Add Support for C23 Enum Types and Refine Sizing
Key changes:
enum : <type>syntax.For enums without an explicit type, the size is now set to the minimum length required by their members, like it done by compilersEnums with
__attribute__((__packed__))or[[packed]]attributes and without an explicit type will be resized to fit largest member.FIxes: