Skip to content

Commit a7a9982

Browse files
committed
[cxx-interop] Add CONFORMS_TO macro in swift-inteorp-support.
1 parent 095d84d commit a7a9982

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)