-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Create feature flag for SE-0384 #64730
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
Create feature flag for SE-0384 #64730
Conversation
@swift-ci Please test |
7cc7f2b
to
564621e
Compare
@swift-ci Please test |
@@ -3159,6 +3159,24 @@ static bool usesFeatureExistentialAny(Decl *decl) { | |||
return false; | |||
} | |||
|
|||
static bool usesFeatureImportObjcForwardDeclarations(Decl *decl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this being used for anything? I don't see it referenced elsewhere in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not obviously -- above in the same file:
#define LANGUAGE_FEATURE(FeatureName, SENumber, Description, Option) \
if (usesFeature##FeatureName(decl)) \
collectRequiredFeature(Feature::FeatureName, operation);
#define SUPPRESSIBLE_LANGUAGE_FEATURE(FeatureName, SENumber, Description, Option) \
if (usesFeature##FeatureName(decl)) \
collectSuppressibleFeature(Feature::FeatureName, operation);
#include "swift/Basic/Features.def"
}
};
It won't compile without this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, metaprogramming. Thanks for clarifying!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround on this! Once this is merged, can you please create a cherry-pick into the 5.9 branch, and also update the text of SE-0384 to refer to the feature name (and remove the reference to the old flag)?
@@ -3159,6 +3159,24 @@ static bool usesFeatureExistentialAny(Decl *decl) { | |||
return false; | |||
} | |||
|
|||
static bool usesFeatureImportObjcForwardDeclarations(Decl *decl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, metaprogramming. Thanks for clarifying!
No description provided.