Skip to content

Commit 8081d87

Browse files
authored
Merge pull request #64461 from zoecarver/conforms-to-attr-macro
[cxx-interop] Add `CONFORMS_TO` macro in swift-inteorp-support.
2 parents e3b3e82 + a7a9982 commit 8081d87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ClangImporter/swift-interop-support.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@
2828

2929
#define SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
3030

31+
#define CONFORMS_TO(_name) \
32+
__attribute__((swift_attr(_CXX_INTEROP_STRINGIFY(conforms_to:_name))))
33+
3134
#endif // SWIFT_CLANGIMPORTER_SWIFT_INTEROP_SUPPORT_H

0 commit comments

Comments
 (0)