Debian Codegraph @

clang/test/APINotes/Inputs/Headers/SwiftImportAs.h

raw
1 struct ImmortalRefType {
2 ImmortalRefType * methodReturningFrt__(void);
3 ImmortalRefType * methodReturningFrt_returns_unretained(void);
4 ImmortalRefType * methodReturningFrt_returns_retained(void);
5 };
6
7 ImmortalRefType * functionReturningFrt__(void);
8 ImmortalRefType * functionReturningFrt_returns_unretained(void);
9 ImmortalRefType * functionReturningFrt_returns_retained(void);
10
11
12 struct RefCountedType { int value; };
13
14 inline void RCRetain(RefCountedType *x) { x->value++; }
15 inline void RCRelease(RefCountedType *x) { x->value--; }
16
17 struct NonCopyableType { int value; };
18 struct CopyableType { int value; };
19
20 struct NonEscapableType { int value; };
21 struct EscapableType { int value; };
22
23 struct RefCountedTypeWithDefaultConvention {};
24 inline void retain(RefCountedType *x) {}
25 inline void release(RefCountedType *x) {}
26
27 struct OpaqueRefCountedType;
28 struct OpaqueRefCountedType; // redeclaration
29
30 inline void ORCRetain(struct OpaqueRefCountedType *x);
31 inline void ORCRelease(struct OpaqueRefCountedType *x);
32
33 typedef unsigned WrappedOptions;
34
35 struct NoncopyableWithDestroyType {
36 };
37
38 void NCDDestroy(NoncopyableWithDestroyType instance);
39
40 void ImportAsUnsafe();
41 struct ImportAsUnsafeStruct {
42 };
43 struct StructWithUnsafeMethod {
44 void ImportAsUnsafeMethod();
45 void ImportAsUnsafeMethodActuallySafe();
46 };
47
48 void ImportAsUnsafeAlreadyAnnotated() __attribute__((swift_attr("unsafe")));
49 void ImportAsUnsafeVersioned();