Skip to content

[5.9-20230510][ModuleInterface] Add mechanism to exclude experimental flags from th… #66134

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

Conversation

drexin
Copy link
Contributor

@drexin drexin commented May 25, 2023

5.9-20230510 cherry-pick of #66088

Explanation: Adds a mechanism to exclude experimental flags from the module interface, so they are not exposed unless necessary for module generation.
Scope: Module interface generation
Issue: rdar://109722548
Risk: Low. Only affects experimental flags
Testing: Added test to check exclusion of flags marked for exclusion
Reviewer: @tshortli @DougGregor

swiftlang#66088) (swiftlang#66101)

* [ModuleInterface] Add mechanism to exclude experimental flags from the module interface

rdar://109722548

* Separate filtered flags from the typical/unfiltered case
@drexin drexin requested a review from a team as a code owner May 25, 2023 16:57
@drexin drexin changed the title [ModuleInterface] Add mechanism to exclude experimental flags from th… [5.9-20230510][ModuleInterface] Add mechanism to exclude experimental flags from th… May 25, 2023
@drexin
Copy link
Contributor Author

drexin commented May 25, 2023

@swift-ci test

@@ -392,6 +392,19 @@ static void ParseModuleInterfaceArgs(ModuleInterfaceOptions &Opts,
}
}

/// Checks if an arg is generally allowed to be included
/// in a module interface
static bool ShouldIncludeModuleInterfaceArg(const Arg *A) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: a more descriptive name for this function can be something like ShouldIncludeExperimentalFeatureFlagInModuleInterface.

@drexin
Copy link
Contributor Author

drexin commented May 25, 2023

@swift-ci test macos

3 similar comments
@drexin
Copy link
Contributor Author

drexin commented May 26, 2023

@swift-ci test macos

@drexin
Copy link
Contributor Author

drexin commented May 26, 2023

@swift-ci test macos

@drexin
Copy link
Contributor Author

drexin commented May 26, 2023

@swift-ci test macos

@drexin
Copy link
Contributor Author

drexin commented Jun 2, 2023

@swift-ci test

@drexin drexin merged commit a59fb77 into swiftlang:release/5.9-20230510 Jun 2, 2023
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.

4 participants