Home
last modified time | relevance | path

Searched refs:CFTypeRef (Results 1 – 25 of 147) sorted by relevance

123456

/external/llvm-project/clang/test/Analysis/
Dretain-release-safe.c5 typedef const void * CFTypeRef; typedef
6 extern CFTypeRef CFRetain(CFTypeRef cf);
7 extern void CFRelease(CFTypeRef cf);
13 extern CFTypeRef CFCreate() CF_RETURNS_RETAINED;
25 CFTypeRef SafeCFRetain(CFTypeRef cf) CF_RETURNS_RETAINED { in SafeCFRetain()
34 void SafeCFRelease(CFTypeRef CF_CONSUMED cf) { in SafeCFRelease()
40 CFTypeRef retainCFType(CFTypeRef cf) CF_RETURNS_RETAINED { in retainCFType()
47 void releaseCFType(CFTypeRef CF_CONSUMED cf) { in releaseCFType()
52 void escape(CFTypeRef cf);
55 CFTypeRef cf = CFCreate(); in makeSureTestsWork()
[all …]
Dretain-release-cf-audited.m8 typedef const void * CFTypeRef; typedef
9 extern CFTypeRef CFRetain(CFTypeRef cf);
10 extern void CFRelease(CFTypeRef cf);
12 extern CFTypeRef CFCreateSomethingAudited();
15 extern CFTypeRef CFCreateSomethingUnaudited();
18 CFTypeRef obj = CFCreateSomethingAudited(); // no-warning
21 CFTypeRef obj2 = CFCreateSomethingAudited(); // expected-warning{{leak}}
27 CFTypeRef obj = CFCreateSomethingUnaudited(); // no-warning
30 CFTypeRef obj2 = CFCreateSomethingUnaudited(); // expected-warning{{leak}}
Dretain-release-compound-literal.m10 typedef const void *CFTypeRef; typedef
12 extern CFTypeRef CFCreate() CF_RETURNS_RETAINED;
13 extern CFTypeRef CFRetain(CFTypeRef cf);
14 extern void CFRelease(CFTypeRef cf);
16 void bar(CFTypeRef *v) {}
19 CFTypeRef *values = (CFTypeRef[]){
Dtest-separate-retaincount.cpp11 typedef const void * CFTypeRef; typedef
12 extern CFTypeRef CFRetain(CFTypeRef cf);
13 extern void CFRelease(CFTypeRef cf);
16 extern CFTypeRef CFCreate() CF_RETURNS_RETAINED;
21 CFTypeRef cf = CFCreate(); in cf_overrelease()
Dweak-functions.c106 typedef struct CFType *CFTypeRef; typedef
107 CFTypeRef CFCreateSomething() __attribute__((weak_import));
108 CFTypeRef CFGetSomething() __attribute__((weak_import));
110 CFTypeRef CFCopyRuleViolation () { in CFCopyRuleViolation()
111 CFTypeRef object = CFGetSomething(); in CFCopyRuleViolation()
115 CFTypeRef CFGetRuleViolation () { in CFGetRuleViolation()
116CFTypeRef object = CFCreateSomething(); // expected-warning{{Potential leak of an object stored in… in CFGetRuleViolation()
Dretain-release-cpp-classes.cpp5 typedef void *CFTypeRef; typedef
8 CFTypeRef CustomCFRetain(CFTypeRef);
11 CFTypeRef s;
12 CFTypeRef returnFieldAtPlus0() { in returnFieldAtPlus0()
/external/clang/test/SemaObjC/
Darc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
5 CFTypeRef CFBridgingRetain(id X);
6 id CFBridgingRelease(CFTypeRef);
12 CFTypeRef CFCreateSomething();
14 CFTypeRef CFGetSomething();
23 …(__bridge int*)CFCreateSomething(); // expected-error{{incompatible types casting 'CFTypeRef' (aka…
29 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
31 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething();
35CFTypeRef cf5 = (__bridge_retain CFTypeRef)CreateSomething(); // expected-error {{unknown cast ann…
39 CFTypeRef fixits() {
[all …]
Dillegal-nonarc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
10 CFTypeRef CFCreateSomething();
12 CFTypeRef CFGetSomething();
27CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // expected-warning {{'__bridge_re…
29 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething();
35 CFTypeRef cf1 = (CFTypeRef)CreateSomething();
41 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // no-warning
42 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething(); // no-warning
/external/llvm-project/clang/test/SemaObjC/
Darc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
5 CFTypeRef CFBridgingRetain(id X);
6 id CFBridgingRelease(CFTypeRef);
12 CFTypeRef CFCreateSomething();
14 CFTypeRef CFGetSomething();
23 …(__bridge int*)CFCreateSomething(); // expected-error{{incompatible types casting 'CFTypeRef' (aka…
29 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
31 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething();
35CFTypeRef cf5 = (__bridge_retain CFTypeRef)CreateSomething(); // expected-error {{unknown cast ann…
39 CFTypeRef fixits() {
[all …]
Dillegal-nonarc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
11 CFTypeRef CFCreateSomething();
13 CFTypeRef CFGetSomething();
28CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // expected-warning {{'__bridge_re…
30 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething();
36 CFTypeRef cf1 = (CFTypeRef)CreateSomething();
42 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // no-warning
43 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething(); // no-warning
/external/llvm-project/clang/test/SemaObjCXX/Inputs/
Dnullability-consistency-8.h15 typedef void *CFTypeRef; typedef
16 void cf1(CFTypeRef * p CF_RETURNS_NOT_RETAINED); // expected-warning{{pointer is missing a nullabil…
20 void cf2(CFTypeRef * _Nullable p CF_RETURNS_NOT_RETAINED);
21 void cf3(CFTypeRef * _Nonnull p CF_RETURNS_NOT_RETAINED);
23 void cf4(CFTypeRef _Nullable * _Nullable p CF_RETURNS_NOT_RETAINED);
24 void cf5(CFTypeRef _Nonnull * _Nullable p CF_RETURNS_NOT_RETAINED);
26 void cf6(CFTypeRef * _Nullable CF_RETURNS_NOT_RETAINED p);
27 void cf7(CF_RETURNS_NOT_RETAINED CFTypeRef * _Nonnull p);
29 typedef CFTypeRef _Nullable *CFTypeRefPtr;
/external/clang/test/SemaObjCXX/Inputs/
Dnullability-consistency-8.h13 typedef void *CFTypeRef; typedef
14 void cf1(CFTypeRef * p CF_RETURNS_NOT_RETAINED); // expected-warning {{pointer is missing a nullabi…
16 void cf2(CFTypeRef * _Nullable p CF_RETURNS_NOT_RETAINED);
17 void cf3(CFTypeRef * _Nonnull p CF_RETURNS_NOT_RETAINED);
19 void cf4(CFTypeRef _Nullable * _Nullable p CF_RETURNS_NOT_RETAINED);
20 void cf5(CFTypeRef _Nonnull * _Nullable p CF_RETURNS_NOT_RETAINED);
22 void cf6(CFTypeRef * _Nullable CF_RETURNS_NOT_RETAINED p);
23 void cf7(CF_RETURNS_NOT_RETAINED CFTypeRef * _Nonnull p);
25 typedef CFTypeRef _Nullable *CFTypeRefPtr;
/external/clang/test/Analysis/
Dretain-release-cf-audited.m8 typedef const void * CFTypeRef; typedef
9 extern CFTypeRef CFRetain(CFTypeRef cf);
10 extern void CFRelease(CFTypeRef cf);
12 extern CFTypeRef CFCreateSomethingAudited();
15 extern CFTypeRef CFCreateSomethingUnaudited();
18 CFTypeRef obj = CFCreateSomethingAudited(); // no-warning
21 CFTypeRef obj2 = CFCreateSomethingAudited(); // expected-warning{{leak}}
27 CFTypeRef obj = CFCreateSomethingUnaudited(); // no-warning
30 CFTypeRef obj2 = CFCreateSomethingUnaudited(); // expected-warning{{leak}}
Dweak-functions.c106 typedef struct CFType *CFTypeRef; typedef
107 CFTypeRef CFCreateSomething() __attribute__((weak_import));
108 CFTypeRef CFGetSomething() __attribute__((weak_import));
110 CFTypeRef CFCopyRuleViolation () { in CFCopyRuleViolation()
111 CFTypeRef object = CFGetSomething(); in CFCopyRuleViolation()
115 CFTypeRef CFGetRuleViolation () { in CFGetRuleViolation()
116CFTypeRef object = CFCreateSomething(); // expected-warning{{Potential leak of an object stored in… in CFGetRuleViolation()
/external/llvm-project/clang/test/ARCMT/
Dno-canceling-bridge-to-bridge-cast.m3 typedef const void * CFTypeRef; typedef
4 CFTypeRef CFBridgingRetain(id X);
5 id CFBridgingRelease(CFTypeRef);
8 CFTypeRef CFRetain(CFTypeRef cf);
25 …ithFormat:@"PBXLoopMode"]); // expected-error {{cast of C pointer type 'CFTypeRef' (aka 'const voi…
27 …pected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const voi…
29 …etain((id)((objc_format))); // expected-error {{cast of C pointer type 'CFTypeRef' (aka 'const voi…
31 …// expected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'cons…
33 …result = (id) CFRetain((id)((cf_format))); // expected-error {{cast of C pointer type 'CFTypeRef' …
35 …pected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const voi…
[all …]
DCommon.h24 typedef const void * CFTypeRef; typedef
25 CFTypeRef CFRetain(CFTypeRef cf);
26 CFTypeRef CFMakeCollectable(CFTypeRef cf) NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
28 NS_INLINE NS_RETURNS_RETAINED id NSMakeCollectable(CFTypeRef CF_CONSUMED cf) NS_AUTOMATED_REFCOUNT_…
87 NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetain(id X) { in CFBridgingRetain()
88 return (__bridge_retained CFTypeRef)X; in CFBridgingRetain()
91 NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { in CFBridgingRelease()
97 NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetain(id X) { in CFBridgingRetain()
98 return X ? CFRetain((CFTypeRef)X) : NULL; in CFBridgingRetain()
101 NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { in CFBridgingRelease()
/external/clang/test/ARCMT/
Dno-canceling-bridge-to-bridge-cast.m3 typedef const void * CFTypeRef; typedef
4 CFTypeRef CFBridgingRetain(id X);
5 id CFBridgingRelease(CFTypeRef);
8 CFTypeRef CFRetain(CFTypeRef cf);
25 …ithFormat:@"PBXLoopMode"]); // expected-error {{cast of C pointer type 'CFTypeRef' (aka 'const voi…
27 …pected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const voi…
29 …etain((id)((objc_format))); // expected-error {{cast of C pointer type 'CFTypeRef' (aka 'const voi…
31 …// expected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'cons…
33 …result = (id) CFRetain((id)((cf_format))); // expected-error {{cast of C pointer type 'CFTypeRef' …
35 …pected-note {{use CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const voi…
[all …]
DCommon.h24 typedef const void * CFTypeRef; typedef
25 CFTypeRef CFRetain(CFTypeRef cf);
26 CFTypeRef CFMakeCollectable(CFTypeRef cf) NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
28 NS_INLINE NS_RETURNS_RETAINED id NSMakeCollectable(CFTypeRef CF_CONSUMED cf) NS_AUTOMATED_REFCOUNT_…
87 NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetain(id X) { in CFBridgingRetain()
88 return (__bridge_retained CFTypeRef)X; in CFBridgingRetain()
91 NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { in CFBridgingRelease()
97 NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetain(id X) { in CFBridgingRetain()
98 return X ? CFRetain((CFTypeRef)X) : NULL; in CFBridgingRetain()
101 NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { in CFBridgingRelease()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.h1 extern PyObject *PyCF_CF2Python(CFTypeRef src);
3 extern PyObject *PyCF_CF2Python_mapping(CFTypeRef src);
4 extern PyObject *PyCF_CF2Python_simple(CFTypeRef src);
7 extern int PyCF_Python2CF(PyObject *src, CFTypeRef *dst);
10 extern int PyCF_Python2CF_simple(PyObject *src, CFTypeRef *dst);
Dpycfbridge.c17 PyCF_CF2Python(CFTypeRef src) { in PyCF_CF2Python()
36 CFTypeRef item_cf; in PyCF_CF2Python_sequence()
58 PyCF_CF2Python_mapping(CFTypeRef src) { in PyCF_CF2Python_mapping()
61 CFTypeRef *allkeys = NULL, *allvalues = NULL; in PyCF_CF2Python_mapping()
62 CFTypeRef key_cf, value_cf; in PyCF_CF2Python_mapping()
66 allkeys = malloc(size*sizeof(CFTypeRef *)); in PyCF_CF2Python_mapping()
71 allvalues = malloc(size*sizeof(CFTypeRef *)); in PyCF_CF2Python_mapping()
100 PyCF_CF2Python_simple(CFTypeRef src) { in PyCF_CF2Python_simple()
147 PyCF_Python2CF(PyObject *src, CFTypeRef *dst) { in PyCF_Python2CF()
161 CFTypeRef item_cf = NULL; in PyCF_Python2CF_sequence()
[all …]
/external/clang/test/SemaObjCXX/
Darc-bridged-cast.mm3 typedef const void *CFTypeRef; typedef
9 CFTypeRef CFCreateSomething();
11 CFTypeRef CFGetSomething();
21 …ype)CFCreateSomething(); // expected-error{{incompatible types casting 'CFTypeRef' (aka 'const voi…
30 CFTypeRef cf1 = (__bridge_retained IdType)CreateSomething();
32 CFTypeRef cf3 = (__bridge IdType)CreateSomething();
36 template void to_cf<CFTypeRef, CFStringRef>(id);
/external/clang/test/CodeGenObjC/
Darc-bridged-cast.m3 typedef const void *CFTypeRef; typedef
9 CFTypeRef CFCreateSomething(void);
11 CFTypeRef CFGetSomething(void);
64 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
69 (__bridge_retained CFTypeRef)CreateSomething(), *i = 13;
85 CFTypeRef cf1 = (__bridge CFTypeRef)CreateSomething();
90 (__bridge CFTypeRef)CreateSomething(), *i = 13;
/external/llvm-project/clang/test/CodeGenObjC/
Darc-bridged-cast.m3 typedef const void *CFTypeRef; typedef
9 CFTypeRef CFCreateSomething(void);
11 CFTypeRef CFGetSomething(void);
64 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
69 (__bridge_retained CFTypeRef)CreateSomething(), *i = 13;
85 CFTypeRef cf1 = (__bridge CFTypeRef)CreateSomething();
90 (__bridge CFTypeRef)CreateSomething(), *i = 13;
/external/llvm-project/clang/test/PCH/Inputs/
Darc.h3 typedef const void *CFTypeRef; typedef
6 CFTypeRef CFCreateSomething();
8 CFTypeRef CFGetSomething();
24 typedef int array1[sizeof((BRIDGE CFTypeRef)CreateSomething())];
/external/clang/test/PCH/Inputs/
Darc.h3 typedef const void *CFTypeRef; typedef
6 CFTypeRef CFCreateSomething();
8 CFTypeRef CFGetSomething();
24 typedef int array1[sizeof((BRIDGE CFTypeRef)CreateSomething())];

123456