Skip to content

[CodeSynthesis] Make sure that init synthesis expands macros #67721

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

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 3, 2023

Previously both AreAllStoredPropertiesDefaultInitableRequest and HasMemberwiseInitRequest
checked only "current" properties of the type but macro expansions can add new stored and/or
init accessor properties that affect this logic so we need to make sure that macro expansions
happen and new properties are accounted for.

Note that the original idea was to use getStoredProperties() but that runs into multiple circularity
issues related to lazy properties.

Resolves: rdar://112153201

@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2023

@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2023

@swift-ci please test Windows platform

2 similar comments
@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2023

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2023

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Aug 5, 2023

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Aug 18, 2023

@swift-ci please test

Previously both `AreAllStoredPropertiesDefaultInitableRequest`
and `HasMemberwiseInitRequest` checked only "current" properties
of the type but macro expansions can add new stored and/or
init accessor properties that affect this logic so we need to
make sure that macro expansions happen and new properties are
accounted for.

Note that the original idea was to use `getStoredProperties()`
but that runs into multiple circularity issues related to lazy
properties.

Resolves: rdar://112153201
@xedin
Copy link
Contributor Author

xedin commented Aug 22, 2023

@swift-ci please test

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.

1 participant