Replies: 1 comment
-
|
I think attributes should only apply to the member defined just before the It might be considered bad style to use attributes in definitions with multiple items, I am OK with rejecting this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes it's useful to have explicit padding members in a struct. These are usually unused, so they might generate a warning. Currently we dont allow having Attributes on struct members. When implementing attributes (unused attr for now), I ran into the issue of comma separated members, like:
When adding the @(..) at the and, it should apply to all, but implementing this is nasty, since we would then need to remember all decls so far. Another option is to only allow attributes on single-decl members (ie not using the comma)..
Beta Was this translation helpful? Give feedback.
All reactions