We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e65d0 commit 737ef9bCopy full SHA for 737ef9b
lib/AST/Decl.cpp
@@ -11049,7 +11049,7 @@ bool swift::isMacroSupported(MacroRole role, ASTContext &ctx) {
11049
switch (role) {
11050
#define EXPERIMENTAL_ATTACHED_MACRO_ROLE(Name, Description, FeatureName) \
11051
case MacroRole::Name: \
11052
- return ctx.LangOpts.hasFeature(FeatureName::CodeItemMacros);
+ return ctx.LangOpts.hasFeature(Feature::FeatureName);
11053
11054
#define EXPERIMENTAL_FREESTANDING_MACRO_ROLE(Name, Description, FeatureName) \
11055
case MacroRole::Name: return ctx.LangOpts.hasFeature(Feature::FeatureName);
0 commit comments