Skip to content

[Request Evaluator] Begin Formalizing Zones #26892

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 2 commits into from
Aug 28, 2019
Merged

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 28, 2019

Begin the road to refactoring the interface to defining requests by swapping out SWIFT_TYPEID for SWIFT_REQUEST. For now, SWIFT_REQUEST will still buy you everything that SWIFT_TYPEID does if you're a request. But, importantly, it includes the zone. Zones are now (temporarily) an enum class, and they all retain their original values (though none of this is important). All the places that were defining magic numbers in macros to pass as zones are kaput.

Ideally this patch is NFC.

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 28, 2019

@swift-ci please smoke test

CodaFi added 2 commits August 27, 2019 17:38
Begin refactoring the request evaluator by swapping SWIFT_TYPEID for
SWIFT_REQUEST.  Introduce the Zone of the request as a formal parameter
to the macro, then re-expand the request macro to get the type info
back.

SWIFT_REQUEST will eventually grow to encompass more information about
requests as we seek to reduce the boilerplate involved in their
definitions.
Formally define the Zones in the TypeID header.  This is not its final
resting place.
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 28, 2019

OK, the merge conflicts have successfully got to me. I'm sorting these def files.

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 28, 2019

macOS failed CMark. Let’s try again

@swift-ci please smoke test macOS platform

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 28, 2019

⛵️

@CodaFi CodaFi merged commit cc9672e into swiftlang:master Aug 28, 2019
@CodaFi CodaFi deleted the zoned-out branch August 28, 2019 03:14
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