Skip to content

Commit 79f282e

Browse files
authored
Merge pull request #63995 from apple/QuietMisdreavus/5.8/compat-fixes
2 parents c4a0c8e + b2254bd commit 79f282e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/PrintAsClang/ClangMacros.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ CLANG_MACRO_BODY("SWIFT_CLASS", \
133133
"SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) " \
134134
"SWIFT_CLASS_EXTRA\n" \
135135
"# define SWIFT_CLASS_NAMED(SWIFT_NAME) " \
136-
"__attribute((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) " \
136+
"__attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) " \
137137
"SWIFT_CLASS_EXTRA\n" \
138138
"# else\n" \
139139
"# define SWIFT_CLASS(SWIFT_NAME) " \
@@ -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); " \
@@ -197,7 +197,7 @@ CLANG_MACRO("SWIFT_DEPRECATED", , "__attribute__((deprecated))")
197197
CLANG_MACRO("SWIFT_DEPRECATED_MSG", "(...)", "__attribute__((deprecated(__VA_ARGS__)))")
198198

199199
CLANG_MACRO_ALTERNATIVE("SWIFT_DEPRECATED_OBJC", "(Msg)", \
200-
"__has_feature(attribute_diagnost_if_objc)", \
200+
"__has_feature(attribute_diagnose_if_objc)", \
201201
"__attribute__((diagnose_if(1, Msg, \"warning\")))", \
202202
"SWIFT_DEPRECATED_MSG(Msg)")
203203

0 commit comments

Comments
 (0)