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

Reuse inline array structs across all users #707

Merged
merged 5 commits into from
Oct 4, 2022
Merged

Reuse inline array structs across all users #707

merged 5 commits into from
Oct 4, 2022

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Oct 4, 2022

This moves inline array structs that used to be nested to a shareable namespace based on their element type. Inline arrays of nested types continue to themselves be nested.

Closes #700

An inline array struct is now only declared once per element type and array length.
This reverts inline array structs to their nested locations when their element type is itself a nested type. This prevents compilation breaks in generated code when the struct would otherwise be generated into a namespace that collides with the nesting type itself.
@AArnott AArnott enabled auto-merge October 4, 2022 16:14
@AArnott AArnott merged commit 0d745c1 into main Oct 4, 2022
@AArnott AArnott deleted the fix700 branch October 4, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promote inline array structs to namespace to encourage reuse
1 participant