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 53
53
/// This example shows how to use this macro to let Swift know that
54
54
/// a non-copyable reference counted C++ class can be imported as a reference counted type in Swift:
55
55
/// ```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> {
58
58
/// public:
59
59
/// static SharedObject* create();
60
60
/// void doSomething();
84
84
/// This example shows how to use this macro to let Swift know that
85
85
/// a non-copyable singleton C++ class can be imported as a reference type in Swift:
86
86
/// ```c++
87
- /// class SWIFT_IMMORTAL_REFERENCE
88
- /// LoggerSingleton : NonCopyable {
87
+ /// class SWIFT_IMMORTAL_REFERENCE SWIFT_NONCOPYABLE
88
+ /// LoggerSingleton {
89
89
/// public:
90
90
/// static LoggerSingleton &getInstance();
91
91
/// void log(int x);
You can’t perform that action at this time.
0 commit comments