Home
last modified time | relevance | path

Searched refs:ARC (Results 1 – 25 of 67) sorted by relevance

123

/external/clang/test/SemaObjC/
Dwarn-retain-block-property.m1 …yntax-only -fblocks -fobjc-arc -Wno-objc-root-class %s 2>&1 | FileCheck --check-prefix=CHECK-ARC %s
34 // CHECK-ARC: 14:1: warning: retain'ed block property does not copy the block - use copy attribute …
35 // CHECK-ARC: @property (retain) void (^aBlock)(void);
36 // CHECK-ARC: ^
37 // CHECK-ARC: 15:1: error: property attributes 'retain' and 'weak' are mutually exclusive
38 // CHECK-ARC: @property (weak, retain) void (^aBlockW)(void);
39 // CHECK-ARC: ^
40 // CHECK-ARC: 18:1: error: property attributes 'copy' and 'retain' are mutually exclusive
41 // CHECK-ARC: @property (copy, retain) void (^aBlockC)(void);
42 // CHECK-ARC: ^
[all …]
Darc-type-conversion.m10 …d)(int*)arg; // expected-error {{cast of an Objective-C pointer to 'int *' is disallowed with ARC}}
12 … expected-error {{cast of an Objective-C pointer to '__autoreleasing id *' is disallowed with ARC}}
13 …arg; // expected-error {{cast of an Objective-C pointer to '__strong id *' is disallowed with ARC}}
17 …oid**)arg; // expected-error {{cast of an Objective-C pointer to 'void **' is disallowed with ARC}}
21 … // expected-note {{use CFBridgingRetain call to make an ARC object available as a +1 'void *'}} \
22 … // expected-note {{use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC}}
27 … // expected-note {{use CFBridgingRetain call to make an ARC object available as a +1 'void *'}}
58 …t conversion of a non-Objective-C pointer type 'void *' to '__strong id *' is disallowed with ARC}}
59 …cit conversion of a non-Objective-C pointer type 'void *' to '__weak id *' is disallowed with ARC}}
60 …rsion of a non-Objective-C pointer type 'void *' to '__autoreleasing id *' is disallowed with ARC}}
[all …]
Dobjcbridge-attribute-arc.m48 …_bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka 'struct __CFError *') into ARC}}
74 …ridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct __CFErrorRef *') into ARC}}
77 …ridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct __CFErrorRef *') into ARC}}
80 …dge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct __CFErrorRef *') into ARC}} \
84 …ge_transfer to transfer ownership of a +1 'CFUColor2Ref' (aka 'union __CFUPrimeColor *') into ARC}}
87 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
91 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
95 …ridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct __CFErrorRef *') into ARC}}
99 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
106 …bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka 'struct __CFErrorRef *') into ARC}}
[all …]
Dnonarc-weak.m4 // RUN: FileCheck -input-file=%t.arc -check-prefix=ARC %s
12 // CHECK: 9:13: warning: __weak attribute cannot be specified on an automatic variable when ARC is …
15 // ARC: 6:13: warning: unused function 'bar'
16 // ARC: 1 warning generated
Dillegal-nonarc-bridged-cast.m19 …ateSomething(); // expected-warning {{'__bridge_transfer' casts have no effect when not using ARC}}
20 …CreateString(); // expected-warning {{'__bridge_transfer' casts have no effect when not using ARC}}
27 …ateSomething(); // expected-warning {{'__bridge_retained' casts have no effect when not using ARC}}
28 …eateNSString(); // expected-warning {{'__bridge_retained' casts have no effect when not using ARC}}
Dwarn-missing-super.m56 …yntax-only -triple x86_64-apple-darwin10 -fobjc-arc %s 2>&1 | FileCheck --check-prefix=CHECK-ARC %s
57 // CHECK-ARC: warn-missing-super.m:36:10: error: ARC forbids explicit message send of 'dealloc'
58 // CHECK-ARC: 1 error generated.
Darc-objc-lifetime.m76 __strong id f1(); // expected-warning{{ARC __strong lifetime qualifier on return type is ignored}}
77 NSObject __unsafe_unretained *f2(int); // expected-warning{{ARC __unsafe_unretained lifetime qualif…
78 __autoreleasing NSObject *f3(void); // expected-warning{{ARC __autoreleasing lifetime qualifier on …
79 NSObject * __strong f4(void); // expected-warning{{ARC __strong lifetime qualifier on return type i…
80 NSObject_ptr __strong f5(); // expected-warning{{ARC __strong lifetime qualifier on return type is …
82 typedef __strong id (*fptr)(int); // expected-warning{{ARC __strong lifetime qualifier on return ty…
Darc-bridged-cast.m41 …se CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const void *') into ARC}}
47 …// expected-note{{use CFBridgingRetain call to make an ARC object available as a +1 'CFTypeRef' (a…
53 …// expected-note{{use CFBridgingRetain call to make an ARC object available as a +1 'CFTypeRef' (a…
61 …// expected-note{{use CFBridgingRetain call to make an ARC object available as a +1 'CFTypeRef' (a…
Darc.m36 SEL s = @selector(retain); // expected-error {{ARC forbids use of 'retain' in a @selector}}
37 s = @selector(release); // expected-error {{ARC forbids use of 'release' in a @selector}}
38 s = @selector(autorelease); // expected-error {{ARC forbids use of 'autorelease' in a @selector}}
39 s = @selector(dealloc); // expected-error {{ARC forbids use of 'dealloc' in a @selector}}
40 [a dealloc]; // expected-error {{ARC forbids explicit message send of 'dealloc'}}
41 [a retain]; // expected-error {{ARC forbids explicit message send of 'retain'}}
42 [a retainCount]; // expected-error {{ARC forbids explicit message send of 'retainCount'}}
43 [a release]; // expected-error {{ARC forbids explicit message send of 'release'}}
44 [a autorelease]; // expected-error {{ARC forbids explicit message send of 'autorelease'}}
53 [super dealloc]; // expected-error {{ARC forbids explicit message send of 'dealloc'}}
[all …]
Ddealloc.m6 - dealloc; // expected-error {{return type must be correctly specified as 'void' under ARC, instead…
20 - (id) dealloc { // expected-error {{return type must be correctly specified as 'void' under ARC, …
/external/clang/test/CodeGenObjCXX/
Dlambda-expressions.mm1 …0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -fblocks -fobjc-arc | FileCheck -check-prefix=ARC %s
17 // ARC-LABEL: define i32 ()* @_Z1fv(
18 // ARC-LABEL: define internal i32 ()* @"_ZZ1fvENK3$_0cvU13block_pointerFivEEv"
19 // ARC: store i8* bitcast (i8** @_NSConcreteStackBlock to i8*)
20 // ARC: store i8* bitcast (i32 (i8*)* @"___ZZ1fvENK3$_0cvU13block_pointerFivEEv_block_invoke" to i8…
21 // ARC: call i8* @objc_retainBlock
22 // ARC: call i8* @objc_autoreleaseReturnValue
34 // ARC: define void @_Z2f2v() [[NUW:#[0-9]+]] {
35 // ARC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*),
36 // ARC: call i8* @objc_retainBlock
[all …]
/external/clang/test/Index/
Dcomplete-property-flags.m24 …tion-at=%s:7:11 %s -fobjc-arc -fobjc-runtime=macosx-10.7 | FileCheck -check-prefix=CHECK-CC1-ARC %s
25 // CHECK-CC1-ARC: {TypedText assign}
26 // CHECK-CC1-ARC-NEXT: {TypedText atomic}
27 // CHECK-CC1-ARC-NEXT: {TypedText copy}
28 // CHECK-CC1-ARC-NEXT: {TypedText getter}{Text =}{Placeholder method}
29 // CHECK-CC1-ARC-NEXT: {TypedText nonatomic}
30 // CHECK-CC1-ARC-NEXT: {TypedText readonly}
31 // CHECK-CC1-ARC-NEXT: {TypedText readwrite}
32 // CHECK-CC1-ARC-NEXT: {TypedText retain}
33 // CHECK-CC1-ARC-NEXT: {TypedText setter}{Text =}{Placeholder method}
[all …]
/external/clang/test/SemaObjCXX/
Dobjcbridge-attribute.mm33 …{{use __bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka '__CFError *') into ARC}}
59 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
62 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
65 …e __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}} \
69 …__bridge_transfer to transfer ownership of a +1 'CFUColor2Ref' (aka '__CFUPrimeColor *') into ARC}}
72 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
76 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
80 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
84 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
91 …{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka '__CFErrorRef *') into ARC}}
[all …]
Dobjcbridge-attribute-arc.mm33 …{{use __bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka '__CFError *') into ARC}}
59 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
62 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
65 …e __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}} \
69 …__bridge_transfer to transfer ownership of a +1 'CFUColor2Ref' (aka '__CFUPrimeColor *') into ARC}}
72 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
76 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
80 …use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
84 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
91 …{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka '__CFErrorRef *') into ARC}}
[all …]
Dobjcbridge-static-cast.mm33 …nsfer with C-style cast to transfer ownership of a +1 'CFTestingRef' (aka '__CFError *') into ARC}}
59 …fer with C-style cast to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
62 …fer with C-style cast to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
65 …r with C-style cast to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}} \
69 …with C-style cast to transfer ownership of a +1 'CFUColor2Ref' (aka '__CFUPrimeColor *') into ARC}}
72 …// expected-note {{use __bridge_retained with C-style cast to make an ARC object available as a +1…
76 …// expected-note {{use __bridge_retained with C-style cast to make an ARC object available as a +1…
80 …fer with C-style cast to transfer ownership of a +1 'CFErrorRef2' (aka '__CFErrorRef *') into ARC}}
84 …// expected-note {{use __bridge_retained with C-style cast to make an ARC object available as a +1…
91 …sfer with C-style cast to transfer ownership of a +1 'CFErrorRef' (aka '__CFErrorRef *') into ARC}}
[all …]
/external/clang/test/CodeGenObjC/
Darc-linetable-autorelease.m3 // ARC cleanups should be at the closing '}'.
32 // CHECK: call void @objc_storeStrong{{.*}} !dbg ![[ARC:[0-9]+]]
33 // CHECK: call {{.*}} @objc_autoreleaseReturnValue{{.*}} !dbg ![[ARC]]
34 // CHECK: ret {{.*}} !dbg ![[ARC]]
37 // CHECK: ![[ARC]] = !MDLocation(line: [[@LINE+1]], scope: !{{.*}})
/external/clang/test/ARCMT/
Dchecking.m65 - (id)retain { return self; } // expected-error {{ARC forbids implementation}}
66 - (id)retainCount { return self; } // expected-error {{ARC forbids implementation}}
67 - (id)autorelease { return self; } // expected-error {{ARC forbids implementation}}
68 - (oneway void)release { } // expected-error {{ARC forbids implementation}}
77 // expected-error {{ARC forbids explicit message send}}
79 // expected-error {{ARC forbids explicit message send}}
81 // expected-error {{ARC forbids explicit message send}} \
85 // expected-error {{ARC forbids explicit message send}}
87 // expected-error {{ARC forbids explicit message send}}
90 [a retainCount]; // expected-error {{ARC forbids explicit message send of 'retainCount'}} \
[all …]
DGC-check.m11 …ctable(cft); // expected-error {{CFMakeCollectable will leak the object that it receives in ARC}} \
13 …); // expected-error {{call returns pointer to GC managed memory; it will become unmanaged in ARC}}
17 __strong void *gcVar; // expected-error {{GC managed memory will become unmanaged in ARC}}
Dno-canceling-bridge-to-bridge-cast.m27 …se CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const void *') into ARC}}
31 …se CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const void *') into ARC}}
35 …se CFBridgingRelease call to transfer ownership of a +1 'CFTypeRef' (aka 'const void *') into ARC}}
Dnonobjc-to-objc-cast-2.m32 …lease call to transfer ownership of a +1 'CFStringRef' (aka 'const struct __CFString *') into ARC}}
40 …lease call to transfer ownership of a +1 'CFStringRef' (aka 'const struct __CFString *') into ARC}}
49 …// expected-note{{use CFBridgingRetain call to make an ARC object available as a +1 'CFStringRef' …
63 …// expected-note{{use CFBridgingRetain call to make an ARC object available as a +1 'CFStringRef' …
Dcheck-with-serialized-diag.m46 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:32:23: error: ARC forbids explicit message send o…
49 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:15: error: ARC forbids explicit message send o…
52 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:35:6: error: ARC forbids explicit message send of…
Dmigrate-plist-output.m23 // CHECK: <key>description</key><string>ARC forbids explicit message send of &apos;release&apos;…
24 // CHECK: <key>category</key><string>ARC Restrictions</string>
/external/clang/test/Lexer/
Dhas_feature_objc_arc.m1 …riple" "x86_64-apple-macosx10.7.0" -fobjc-runtime-has-weak | FileCheck --check-prefix=CHECK-ARC %s
16 // CHECK-ARC: void has_objc_arc_feature();
17 // CHECK-ARC: void has_objc_arc_weak_feature();
/external/clang/docs/
DAutomaticReferenceCounting.rst62 Objective-C Automatic Reference Counting (ARC)
83 The secondary purpose is to act as a rationale for why ARC was designed in this
184 ARC is under continual evolution, and this document must be updated as the
191 ARC applies to Objective-C pointer types, block pointer types, and
218 ARC may be explicitly enabled with the compiler flag ``-fobjc-arc``. It may
222 If ARC is enabled, ``__has_feature(objc_arc)`` will expand to 1 in the
232 the restrictions imposed on their use under ARC. Note in particular that it
247 ARC's semantics and restrictions.
251 We are not at liberty to require all code to be recompiled with ARC;
252 therefore, ARC must interoperate with Objective-C code which manages retains
[all …]
/external/llvm/test/Transforms/ObjCARC/
Dgvn.ll9 ; GVN should be able to eliminate this redundant load, with ARC-specific
26 ; GVN should not be able to eliminate this redundant load, with ARC-specific

123