Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/test/Analysis/
H A Dretain-release-safe.c5 typedef const void * CFTypeRef; typedef
6 extern CFTypeRef CFRetain(CFTypeRef cf);
7 extern void CFRelease(CFTypeRef cf);
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()
52 void escape(CFTypeRef cf);
55 CFTypeRef cf = CFCreate(); in makeSureTestsWork()
62 void falseOverrelease(CFTypeRef cf) { in falseOverrelease()
70 void sameWithNormalRelease(CFTypeRef cf) { in sameWithNormalRelease()
[all …]
H A 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(void);
15 extern CFTypeRef CFCreateSomethingUnaudited(void);
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}}
H A Dretain-release-compound-literal.m10 typedef const void *CFTypeRef; typedef
12 extern CFTypeRef CFCreate(void) CF_RETURNS_RETAINED;
13 extern CFTypeRef CFRetain(CFTypeRef cf);
14 extern void CFRelease(CFTypeRef cf);
16 void bar(CFTypeRef *v) {}
19 CFTypeRef *values = (CFTypeRef[]){
H A 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()
H A Dweak-functions.c108 typedef struct CFType *CFTypeRef; typedef
109 CFTypeRef CFCreateSomething(void) __attribute__((weak_import));
110 CFTypeRef CFGetSomething(void) __attribute__((weak_import));
112 CFTypeRef CFCopyRuleViolation (void) { in CFCopyRuleViolation()
113 CFTypeRef object = CFGetSomething(); in CFCopyRuleViolation()
117 CFTypeRef CFGetRuleViolation (void) { in CFGetRuleViolation()
118CFTypeRef object = CFCreateSomething(); // expected-warning{{Potential leak of an object stored in… in CFGetRuleViolation()
H A Dretain-release-cpp-classes.cpp5 typedef void *CFTypeRef; typedef
8 CFTypeRef CustomCFRetain(CFTypeRef);
11 CFTypeRef s;
12 CFTypeRef returnFieldAtPlus0() { in returnFieldAtPlus0()
H A Dobjc-arc.m123 typedef const void *CFTypeRef; typedef
130 CFTypeRef CFCreateSomething(void);
132 CFTypeRef CFGetSomething(void);
150 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // expected-warning{{never read}}
152 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething(); // expected-warning{{never read}}
205 __attribute__((cf_returns_retained)) CFTypeRef CFBridgingRetain(id X);
234 typedef const void * CFTypeRef; typedef
239 extern CFTypeRef CFRetain(CFTypeRef cf);
240 extern void CFRelease(CFTypeRef cf);
H A Dretain-release-path-notes.m34 typedef struct CFType *CFTypeRef; typedef
35 CFTypeRef CFRetain(CFTypeRef);
36 void CFRelease(CFTypeRef);
37 CFTypeRef CFAutorelease(CFTypeRef __attribute__((cf_consumed)));
39 id NSMakeCollectable(CFTypeRef);
40 CFTypeRef CFMakeCollectable(CFTypeRef);
42 CFTypeRef CFCreateSomething(void);
43 CFTypeRef CFGetSomething(void);
71CFTypeRef leaked = CFGetSomething(); // expected-note{{Call to function 'CFGetSomething' returns a…
108 CFTypeRef CFCopyRuleViolation (void) {
[all …]
H A Dretaincountchecker-compoundregion.m2 typedef const void *CFTypeRef; typedef
21 CFTypeRef* values = (CFTypeRef[]){
H A Dretain-release.m80 typedef const void * CFTypeRef; typedef
85 extern CFTypeRef CFRetain(CFTypeRef cf);
87 extern CFTypeRef CFMakeCollectable(CFTypeRef cf);
88 extern CFTypeRef CFAutorelease(CFTypeRef CF_CONSUMED cf);
899 typedef CFTypeRef OtherRef;
1909 CFTypeRef global;
2346 CFTypeRef x = *(CFTypeRef *)tp;
2374 CFTypeRef obj;
2381 CFTypeRef obj;
2388 CFTypeRef obj;
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Darc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
5 CFTypeRef CFBridgingRetain(id X);
6 id CFBridgingRelease(CFTypeRef);
12 CFTypeRef CFCreateSomething(void);
14 CFTypeRef CFGetSomething(void);
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(void) {
45CFTypeRef cf1 = (CFTypeRef)CreateSomething(); // expected-error{{cast of Objective-C pointer type …
[all …]
H A Dillegal-nonarc-bridged-cast.m4 typedef const void *CFTypeRef; typedef
11 CFTypeRef CFCreateSomething(void);
13 CFTypeRef CFGetSomething(void);
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
H A Dovl-check.m7 typedef const __attribute__((objc_bridge(id))) void * CFTypeRef; typedef
12 - (void) test2:(CFTypeRef)arg; argument
46 - (void) testCFTypeRef:(CFTypeRef)arg; argument
55 // Overload resolution should occur silently, select the CFTypeRef overload,
57 …implicit conversion of Objective-C pointer type 'id' to C pointer type 'CFTypeRef'}} expected-note…
/llvm-project-15.0.7/clang/test/SemaObjCXX/Inputs/
H A 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;
/llvm-project-15.0.7/clang/test/ARCMT/
H A 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 …]
H A 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()
H A DGC-check.m6 typedef const void * CFTypeRef; typedef
7 CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE; // expected-note {{una…
10 void test1(CFTypeRef *cft) {
11CFTypeRef c = CFMakeCollectable(cft); // expected-error {{CFMakeCollectable will leak the object t…
H A Dchecking-in-arc.m9 typedef const void * CFTypeRef; typedef
10 CFTypeRef CFBridgingRetain(id X);
11 id CFBridgingRelease(CFTypeRef);
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Darc-bridged-cast.m3 typedef const void *CFTypeRef; typedef
9 CFTypeRef CFCreateSomething(void);
11 CFTypeRef CFGetSomething(void);
63 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
67 (__bridge_retained CFTypeRef)CreateSomething(), *i = 13;
82 CFTypeRef cf1 = (__bridge CFTypeRef)CreateSomething();
87 (__bridge CFTypeRef)CreateSomething(), *i = 13;
/llvm-project-15.0.7/clang/test/PCH/Inputs/
H A Darc.h3 typedef const void *CFTypeRef; typedef
6 CFTypeRef CFCreateSomething(void);
8 CFTypeRef CFGetSomething(void);
24 typedef int array1[sizeof((BRIDGE CFTypeRef)CreateSomething())];
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A 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);
/llvm-project-15.0.7/clang/test/FixIt/
H A Dnullability.mm28 typedef const void *CFTypeRef; typedef
30 extern CFTypeRef typedefArray[2]; // expected-warning {{inferring '_Nonnull' for pointer type withi…
52 extern CFTypeRef &typedefRef; // expected-warning {{inferring '_Nonnull' for pointer type within re…
54 extern CFTypeRef& typedefRef2; // expected-warning {{inferring '_Nonnull' for pointer type within r…
64 void arrayNamelessTypedef(CFTypeRef[]); // expected-warning {{inferring '_Nonnull' for pointer type…
67 void arrayNamelessTypedef2(CFTypeRef []); // expected-warning {{inferring '_Nonnull' for pointer ty…
77 CFTypeRef *arrayOfNestedPointersTypedef[2]; // no-warning
78 …pected-error {{cannot initialize a variable of type 'int' with an lvalue of type 'CFTypeRef *[2]'}}
H A Dbridge-cast-in-arc.mm12 typedef const void * CFTypeRef; typedef
13 extern "C" CFTypeRef CFBridgingRetain(id X);
/llvm-project-15.0.7/compiler-rt/lib/builtins/
H A Dos_version_check.c46 *CFStringRef, *CFDictionaryRef, *CFTypeRef, *CFErrorRef; typedef
83 typedef CFTypeID (*CFGetTypeIDFuncTy)(CFTypeRef);
87 typedef void (*CFReleaseFuncTy)(CFTypeRef);
213 CFTypeRef OpaqueValue = (*CFDictionaryGetValueFunc)(PListRef, ProductVersion); in _initializeAvailabilityCheck()
/llvm-project-15.0.7/clang/test/Analysis/inlining/
H A DInlineObjCInstanceMethod.m6 typedef const void * CFTypeRef; typedef
7 extern CFTypeRef CFRetain(CFTypeRef cf);
8 extern void CFRelease(CFTypeRef cf);

123