Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-07-15 07:14:24 -07:00
10 changed files with 25 additions and 84 deletions

View File

@@ -178,4 +178,11 @@
#define SWIFT_VFORMAT(fmt)
#endif
// Tells Swift's ClangImporter to import a C++ type as a foreign reference type.
#if __has_attribute(swift_attr)
#define SWIFT_IMPORT_REFERENCE __attribute__((swift_attr("import_as_ref")))
#else
#define SWIFT_IMPORT_REFERENCE
#endif
#endif // SWIFT_BASIC_COMPILER_H