@@ -18,6 +18,8 @@ func foo(_ p: inout MutableSpan<CInt>, a: A, aa: inout A, s: IntSpan, cs: ConstI
18
18
aa. refSelf ( & p)
19
19
aa. namespaced ( & p)
20
20
b. decapseman ( & p)
21
+ baz. bar ( & aa, & p)
22
+ baz. this ( & aa, & p)
21
23
22
24
let _: IntSpan = unsafe s. spanSelf ( )
23
25
let _: MutableSpan < CInt > = unsafe s. spanSelf ( )
@@ -62,6 +64,8 @@ ConstIntSpan constSpanSelf(ConstIntSpan p __lifetimebound) __attribute__((swift_
62
64
namespace baz {
63
65
void namespaced( A * a, IntSpan p __noescape) __attribute__( ( swift_name ( " A.namespaced(self:_:) " ) ) ) ;
64
66
struct B { } ;
67
+ void renamed( A & a, IntSpan p __noescape) __attribute__( ( swift_name ( " baz.bar(_:_:) " ) ) ) ;
68
+ void that( A & a, IntSpan p __noescape) __attribute__( ( swift_name ( " this(_:_:) " ) ) ) ;
65
69
}
66
70
67
71
void decapseman( baz: : B * b, IntSpan p __noescape) __attribute__( ( swift_name ( " baz.B.decapseman(self:_:) " ) ) ) ;
@@ -169,7 +173,7 @@ public mutating func refSelf(_ p: inout MutableSpan<CInt>) {
169
173
@available ( swift, obsoleted: 3 , renamed: " A.refSelf(self:_:) " ) @_alwaysEmitIntoClient @available ( visionOS 1 . 0 , tvOS 12 . 2 , watchOS 5 . 2 , iOS 12 . 2 , macOS 10 . 14 . 4 , * ) @_lifetime ( p: copy p) @_disfavoredOverload
170
174
public func refSelf( _ a: inout A , _ p: inout MutableSpan < CInt > ) {
171
175
return unsafe p. withUnsafeMutableBufferPointer { _pPtr in
172
- return unsafe refSelf( a, IntSpan ( _pPtr) )
176
+ return unsafe refSelf( & a, IntSpan ( _pPtr) )
173
177
}
174
178
}
175
179
------------------------------
@@ -213,6 +217,46 @@ public func decapseman(_ b: UnsafeMutablePointer<baz.B>!, _ p: inout MutableSpan
213
217
}
214
218
}
215
219
------------------------------
220
+ @__swiftmacro_So3bazO8InstanceE3bar15_SwiftifyImportfMp_ . swift
221
+ ------------------------------
222
+ /// This is an auto-generated wrapper for safer interop
223
+ @_alwaysEmitIntoClient @available ( visionOS 1 . 0 , tvOS 12 . 2 , watchOS 5 . 2 , iOS 12 . 2 , macOS 10 . 14 . 4 , * ) @_lifetime ( p: copy p) @_disfavoredOverload
224
+ public static func bar( _ a: inout A , _ p: inout MutableSpan < CInt > ) {
225
+ return unsafe p. withUnsafeMutableBufferPointer { _pPtr in
226
+ return unsafe bar( & a, IntSpan ( _pPtr) )
227
+ }
228
+ }
229
+ ------------------------------
230
+ @__swiftmacro_So3bazO7renamed15_SwiftifyImportfMp_ . swift
231
+ ------------------------------
232
+ /// This is an auto-generated wrapper for safer interop
233
+ @available ( swift, obsoleted: 3 , renamed: " baz.bar(_:_:) " ) @_alwaysEmitIntoClient @available ( visionOS 1 . 0 , tvOS 12 . 2 , watchOS 5 . 2 , iOS 12 . 2 , macOS 10 . 14 . 4 , * ) @_lifetime ( p: copy p) @_disfavoredOverload
234
+ public static func renamed( _ a: inout A , _ p: inout MutableSpan < CInt > ) {
235
+ return unsafe p. withUnsafeMutableBufferPointer { _pPtr in
236
+ return unsafe renamed( & a, IntSpan ( _pPtr) )
237
+ }
238
+ }
239
+ ------------------------------
240
+ @__swiftmacro_So3bazO4this15_SwiftifyImportfMp_ . swift
241
+ ------------------------------
242
+ /// This is an auto-generated wrapper for safer interop
243
+ @_alwaysEmitIntoClient @available ( visionOS 1 . 0 , tvOS 12 . 2 , watchOS 5 . 2 , iOS 12 . 2 , macOS 10 . 14 . 4 , * ) @_lifetime ( p: copy p) @_disfavoredOverload
244
+ public static func this( _ a: inout A , _ p: inout MutableSpan < CInt > ) {
245
+ return unsafe p. withUnsafeMutableBufferPointer { _pPtr in
246
+ return unsafe this( & a , IntSpan( _pPtr ) )
247
+ }
248
+ }
249
+ ------------------------------
250
+ @__swiftmacro_So3bazO4that15_SwiftifyImportfMp_ . swift
251
+ ------------------------------
252
+ /// This is an auto-generated wrapper for safer interop
253
+ @available ( swift, obsoleted: 3 , renamed: " this(_:_:) " ) @_alwaysEmitIntoClient @available ( visionOS 1 . 0 , tvOS 12 . 2 , watchOS 5 . 2 , iOS 12 . 2 , macOS 10 . 14 . 4 , * ) @_lifetime ( p: copy p) @_disfavoredOverload
254
+ public static func that( _ a: inout A , _ p: inout MutableSpan < CInt > ) {
255
+ return unsafe p. withUnsafeMutableBufferPointer { _pPtr in
256
+ return unsafe that( & a, IntSpan ( _pPtr) )
257
+ }
258
+ }
259
+ ------------------------------
216
260
@__swiftmacro_So3stdO3__1O0056spanCInt_CUnsignedLong_18446744073709551615_syGJqopasxheV8InstanceE8spanSelf15_SwiftifyImportfMp_ . swift
217
261
------------------------------
218
262
/// This is an auto-generated wrapper for safer interop
0 commit comments