xref: /llvm-project-15.0.7/clang/test/APINotes/Inputs/Frameworks/SimpleKit.framework/Headers/SimpleKit.h (revision 82f86ae0)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct RenamedAgainInAPINotesA {
2   int field;
3 } __attribute__((__swift_name__("bad")));
4 
5 struct __attribute__((__swift_name__("bad"))) RenamedAgainInAPINotesB {
6   int field;
7 };
8 
9 void *getCFOwnedToUnowned(void) __attribute__((__cf_returns_retained__));
10 void *getCFUnownedToOwned(void) __attribute__((__cf_returns_not_retained__));
11 void *getCFOwnedToNone(void) __attribute__((__cf_returns_retained__));
12 id getObjCOwnedToUnowned(void) __attribute__((__ns_returns_retained__));
13 id getObjCUnownedToOwned(void) __attribute__((__ns_returns_not_retained__));
14 
15 int indirectGetCFOwnedToUnowned(void **out __attribute__((__cf_returns_retained__)));
16 int indirectGetCFUnownedToOwned(void **out __attribute__((__cf_returns_not_retained__)));
17 int indirectGetCFOwnedToNone(void **out __attribute__((__cf_returns_retained__)));
18 int indirectGetCFNoneToOwned(void **out);
19 
20 #pragma clang arc_cf_code_audited begin
21 void *getCFAuditedToUnowned_DUMP(void);
22 void *getCFAuditedToOwned_DUMP(void);
23 void *getCFAuditedToNone_DUMP(void);
24 #pragma clang arc_cf_code_audited end
25 
26 @interface MethodTest
27 - (id)getOwnedToUnowned __attribute__((__ns_returns_retained__));
28 - (id)getUnownedToOwned __attribute__((__ns_returns_not_retained__));
29 @end
30 

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025