File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/ClangImporter/SwiftBridging/swift Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5353/// This example shows how to use this macro to let Swift know that
5454/// a non-copyable reference counted C++ class can be imported as a reference counted type in Swift:
5555/// ```c++
56- /// class SWIFT_SHARED_REFERENCE(retainSharedObject, releaseSharedObject)
57- /// SharedObject : NonCopyable, IntrusiveReferenceCounted<SharedObject> {
56+ /// class SWIFT_SHARED_REFERENCE(retainSharedObject, releaseSharedObject) SWIFT_NONCOPYABLE
57+ /// SharedObject : IntrusiveReferenceCounted<SharedObject> {
5858/// public:
5959/// static SharedObject* create();
6060/// void doSomething();
8484/// This example shows how to use this macro to let Swift know that
8585/// a non-copyable singleton C++ class can be imported as a reference type in Swift:
8686/// ```c++
87- /// class SWIFT_IMMORTAL_REFERENCE
88- /// LoggerSingleton : NonCopyable {
87+ /// class SWIFT_IMMORTAL_REFERENCE SWIFT_NONCOPYABLE
88+ /// LoggerSingleton {
8989/// public:
9090/// static LoggerSingleton &getInstance();
9191/// void log(int x);
You can’t perform that action at this time.
0 commit comments