Searched refs:ARC (Results 1 – 25 of 67) sorted by relevance
123
/external/clang/test/SemaObjC/ |
D | warn-retain-block-property.m | 1 …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 …]
|
D | arc-type-conversion.m | 10 …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 …]
|
D | objcbridge-attribute-arc.m | 48 …_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 …]
|
D | nonarc-weak.m | 4 // 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
|
D | illegal-nonarc-bridged-cast.m | 19 …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}}
|
D | warn-missing-super.m | 56 …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.
|
D | arc-objc-lifetime.m | 76 __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…
|
D | arc-bridged-cast.m | 41 …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…
|
D | arc.m | 36 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 …]
|
D | dealloc.m | 6 - 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/ |
D | lambda-expressions.mm | 1 …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/ |
D | complete-property-flags.m | 24 …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/ |
D | objcbridge-attribute.mm | 33 …{{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 …]
|
D | objcbridge-attribute-arc.mm | 33 …{{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 …]
|
D | objcbridge-static-cast.mm | 33 …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/ |
D | arc-linetable-autorelease.m | 3 // 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/ |
D | checking.m | 65 - (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 …]
|
D | GC-check.m | 11 …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}}
|
D | no-canceling-bridge-to-bridge-cast.m | 27 …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}}
|
D | nonobjc-to-objc-cast-2.m | 32 …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' …
|
D | check-with-serialized-diag.m | 46 // 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…
|
D | migrate-plist-output.m | 23 // CHECK: <key>description</key><string>ARC forbids explicit message send of 'release'… 24 // CHECK: <key>category</key><string>ARC Restrictions</string>
|
/external/clang/test/Lexer/ |
D | has_feature_objc_arc.m | 1 …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/ |
D | AutomaticReferenceCounting.rst | 62 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/ |
D | gvn.ll | 9 ; 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