Skip to content

Commit d7c31aa

Browse files
authored
Merge pull request #63902 from apple/QuietMisdreavus/enum-macro
fix bad expansion of SWIFT_ENUM
2 parents 959d76c + 41576c5 commit d7c31aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/PrintAsClang/ClangMacros.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ CLANG_MACRO_CONDITIONAL("SWIFT_ENUM_ATTR", "(_extensibility)", \
175175
CLANG_MACRO_BODY("SWIFT_ENUM", \
176176
"# define SWIFT_ENUM(_type, _name, _extensibility) " \
177177
"enum _name : _type _name; " \
178-
"enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name: _type\n" \
178+
"enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type\n" \
179179
"# if __has_feature(generalized_swift_name)\n" \
180180
"# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) " \
181181
"enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); " \

0 commit comments

Comments
 (0)