Home
last modified time | relevance | path

Searched refs:__weak (Results 1 – 25 of 119) sorted by relevance

12345

/external/clang/test/SemaObjCXX/
Darc-type-traits.mm17 struct HasWeak { __weak id obj; };
22 TRAIT_IS_TRUE(__has_nothrow_assign, __weak id);
31 TRAIT_IS_TRUE(__has_nothrow_copy, __weak id);
40 TRAIT_IS_TRUE(__has_nothrow_constructor, __weak id);
49 TRAIT_IS_FALSE(__has_trivial_assign, __weak id);
58 TRAIT_IS_FALSE(__has_trivial_copy, __weak id);
67 TRAIT_IS_FALSE(__has_trivial_constructor, __weak id);
76 TRAIT_IS_FALSE(__has_trivial_destructor, __weak id);
85 TRAIT_IS_TRUE(__is_literal, __weak id);
91 TRAIT_IS_TRUE(__is_literal_type, __weak id);
[all …]
Darc-unavailable-for-weakref.mm11 __weak sub *w2; // expected-error {{class is incompatible with __weak references}}
13 __weak NSOptOut1072 *ns1; // expected-error {{class is incompatible with __weak references}}
17 …ns1 = (__weak sub *)obj; // expected-error {{assignment of a weak-unavailable object to a __weak o…
18 // expected-error {{class is incompatible with __weak references}} \
30 __weak id weak1;
31 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
33__weak id weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak
34 …return (__weak id)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK *' …
43 __weak id<P> weak1;
44 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
[all …]
Darc-type-conversion.mm50 …(void)static_cast<__weak id*>(idp); // expected-error{{static_cast from '__strong id *' to '__weak
53 void test_const_cast(__strong id *sip, __weak id *wip,
54 const __strong id *csip, __weak const id *cwip) {
58 (void)const_cast<__weak id *>(sip); // expected-error{{is not allowed}}
62 (void)const_cast<__weak id *>(cwip);
65 void test_reinterpret_cast(__strong id *sip, __weak id *wip,
66 const __strong id *csip, __weak const id *cwip) {
70 (void)reinterpret_cast<__weak id *>(sip);
74 …(void)reinterpret_cast<__weak id *>(cwip); // expected-error{{reinterpret_cast from '__weak id con…
75 …(void)reinterpret_cast<__weak id *>(csip); // expected-error{{reinterpret_cast from '__strong id c…
[all …]
Darc-templates.mm55 int check_ptr_strong2[is_pointer_strong<__weak id*>::value? -1 : 1];
67 struct make_strong_pointer<__weak T> {
91 int check_make_strong6[is_same<make_strong_pointer<__weak id>::type, __strong id *>::value ? 1 : -1…
95 typedef __weak T type;
98 int check_make_weak0[is_same<make_weak<id>::type, __weak id>::value? 1 : -1];
99 int check_make_weak1[is_same<make_weak<__strong id>::type, __weak id>::value? 1 : -1];
100 int check_make_weak2[is_same<make_weak<__autoreleasing id>::type, __weak id>::value? 1 : -1];
105 …typedef __weak T_type type; // expected-error{{the type 'T_type' (aka '__weak id') is already expl…
109 …<make_weak_fail<__weak id>::type, __weak id>::value? 1 : -1]; // expected-note{{in instantiation o…
111 int check_make_weak_fail1[is_same<make_weak_fail<id>::type, __weak id>::value? -1 : 1]; // expected…
[all …]
Darc-overloading.mm4 …// expected-note{{candidate function not viable: 1st argument ('__weak id *') has __weak ownership…
9 id __weak *wip;
22 float &f1(id __weak const *);
27 id __weak *wip;
45 id __weak *wip;
62 id __weak wip;
78 id __weak wip;
80 extern __weak id weak_global_ptr;
94 id __weak wip;
110 A* __weak wip;
[all …]
Doverload-gc.mm4 void f0(__weak id *);
13 void f1(__weak id*);
14 void test_f1(__weak A** a) {
21 void f2(__weak A**);
22 void test_f2(__weak B** b) {
Dparameterized_classes_arc.mm19 void test1a(PC1<__weak id> *obj) { // expected-error {{type argument '__weak id' cannot be qualifie…
35 void test1d(PC1<__weak Forward*> *obj) { // expected-error {{type argument 'Forward *__weak' cannot…
85 void test2e() { test2_temp<__weak id>(); }
96 @interface PC3<T : __weak id> // expected-error {{type bound '__weak id' for type parameter 'T' can…
102 …terface PC5<T : __weak Forward*> // expected-error {{type bound 'Forward *__weak' for type paramet…
Dgc-attributes.mm6 …/ expected-note{{candidate function not viable: 1st argument ('A *__weak *') has __weak ownership,…
10 static __weak A *a2;
15 …id f1(__weak A**); // expected-note{{candidate function not viable: 1st argument ('A *__strong *')…
/external/clang/test/SemaObjC/
Darc-unavailable-for-weakref.m11 __weak sub *w2; // expected-error {{class is incompatible with __weak references}}
13 __weak NSOptOut1072 *ns1; // expected-error {{class is incompatible with __weak references}}
17 …ns1 = (__weak sub *)obj; // expected-error {{assignment of a weak-unavailable object to a __weak o…
18 // expected-error {{class is incompatible with __weak references}} \
30 __weak id weak1;
31 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
33__weak id weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak
34 …return (__weak id)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK *' …
43 __weak id<P> weak1;
44 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
[all …]
Dmrc-weak.m20 …_wa; // expected-error {{existing instance variable '_wa' for __weak property 'wa' must be __weak}}
21 __weak id _wb;
22 …_wc; // expected-error {{existing instance variable '_wc' for __weak property 'wc' must be __weak}}
24__weak id _ub; // expected-error {{existing instance variable '_ub' for property 'ub' with unsafe_…
27__weak id _sb; // expected-error {{existing instance variable '_sb' for strong property 'sb' may n…
46 __weak id x; // expected-note {{jump bypasses initialization of __weak variable}}}
52 __weak id *a = (__weak id*) value;
53 …id *b = (__weak id*) value; // expected-error {{initializing 'id *' with an expression of type '__…
54__weak id *c = (id*) value; // expected-error {{initializing '__weak id *' with an expression of t…
63 void test_cast_qualifier_inference(__weak id *value) {
[all …]
Derror-property-gc-attr.m7 __weak id II;
8 __weak id WID;
10 __weak INTF* AWEAK;
11 __weak INTF* WI;
13 @property (assign) __weak id pweak;
14 @property (assign) __weak id WID;
18 @property (assign) __weak INTF* WI;
22 … // expected-error {{existing instance variable 'IVAR' for __weak property 'pweak' must be __weak}}
23 …; // expected-error {{existing instance variable 'II' for strong property 'NOT' may not be __weak}}
26 …expected-error {{existing instance variable 'AWEAK' for strong property 'AWEAK' may not be __weak}}
Darc-property.m5 …id __weak myString; // expected-error {{existing instance variable 'myString' for strong property …
7 …id __weak myString2; // expected-error {{existing instance variable 'myString2' for strong propert…
8 id __weak myString3;
9 …d-error {{existing instance variable 'StrongIvar5' for __weak property 'myString5' must be __weak}}
17 @property __weak id myString5; // expected-note {{property declared here}}
34 …ined x; // expected-error {{existing instance variable 'x' for __weak property 'x' must be __weak}}
35 …ong y; // expected-error {{existing instance variable 'y' for __weak property 'y' must be __weak}}
Dmrc-no-weak.m8 __weak id x;
10 @property __weak id y;
15__weak id x; // expected-error {{cannot create __weak reference in file using manual reference co…
17 @property __weak id x;
25 @property __weak id x; // expected-note {{property declared here}}
32 @property __weak id x; // expected-note {{property declared here}}
39 __weak id x; // expected-note 2 {{declaration uses __weak, but ARC is disabled}}
Darc-objc-lifetime.m91 __weak id *(^myBlock)(void);
92 __weak id *var = myBlock();
94 (void) (__weak id *) &myBlock; // expected-error {{cast}}
97 __weak id (^myBlock)(void);
98 (void) (__weak id *) &myBlock;
102 __weak id (^*(^myBlock)(void))(void);
103 (void) (__weak id*) myBlock();
105 (void) (__weak id*) &myBlock; // expected-error {{cast}}
111 __weak Test9 **(^myBlock)(void);
112 __weak Test9 **var = myBlock();
[all …]
Darc-property-decl-attrs.m7 id __weak y;
18 id __weak y;
29 id __weak y;
41 @property(strong) __weak id y; // expected-error {{strong property 'y' may not also be declared __w…
47 @property(retain) __weak id y; // expected-error {{strong property 'y' may not also be declared __w…
53 @property(copy) __weak id y; // expected-error {{strong property 'y' may not also be declared __wea…
59 @property(assign) __weak id y; // expected-error {{unsafe_unretained property 'y' may not also be d…
65 @property(unsafe_unretained) __weak id y; // expected-error {{unsafe_unretained property 'y' may no…
Dparameterized_classes_arc.m19 void test1a(PC1<__weak id> *obj) { // expected-error {{type argument '__weak id' cannot be qualifie…
35 void test1d(PC1<__weak Forward*> *obj) { // expected-error {{type argument 'Forward *__weak' cannot…
84 @interface PC3<T : __weak id> // expected-error {{type bound '__weak id' for type parameter 'T' can…
90 …terface PC5<T : __weak Forward*> // expected-error {{type bound 'Forward *__weak' for type paramet…
Dweak-property.m6 __weak id value;
7 … id x; // expected-error {{existing instance variable 'x' for __weak property 'x' must be __weak}}
10 @property __weak id value;
11 @property () __weak id value2;
18 @property () __weak id x; // expected-note {{property declared here}}
Dwarn-weak-field.m5 __weak id w; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
11 __weak id w; // OK
23__weak id w1; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
Darc-no-runtime.m5__weak id x; // expected-error {{cannot create __weak reference because the current deployment tar…
6__weak void *v; // expected-warning {{'__weak' only applies to Objective-C object or block pointer…
/external/clang/test/ARCMT/
DGC-no-finalize-removal.m45 __weak id s;
46 __weak QQ *q;
51 @property (assign) I3 *__weak pw1, *__weak pw2;
59 __weak I4Impl *pw3;
60 __weak I4Impl *pw4;
62 @property (assign) I4Impl *__weak pw1, *__weak pw2;
68 @property (readonly) __weak I4Impl *pw3;
69 @property (assign) __weak I4Impl *pw4;
84 @property (assign) id __weak weak_prop;
DGC.m45 __weak id s;
46 __weak QQ *q;
51 @property (assign) I3 *__weak pw1, *__weak pw2;
59 __weak I4Impl *pw3;
60 __weak I4Impl *pw4;
62 @property (assign) I4Impl *__weak pw1, *__weak pw2;
68 @property (readonly) __weak I4Impl *pw3;
69 @property (assign) __weak I4Impl *pw4;
84 @property (assign) id __weak weak_prop;
DGC-no-arc-runtime.m7 // MRC __weak broke this test somehow.
48 __weak id s;
49 __weak QQ *q;
54 @property (assign) I3 *__weak pw1, *__weak pw2;
62 @property (assign) I4Impl *__weak pw1, *__weak pw2;
77 __weak id prop;
79 @property (readonly) __weak id prop;
/external/clang/test/CodeGenObjC/
Dobjc2-weak-assign.m6 __weak id* x;
7 id* __weak y;
8 id* __weak* z;
10 __weak id* a1[20];
11 id* __weak a2[30];
12 id** __weak a3[40];
14 void foo (__weak id *param) {
Darc-captured-32bit-block-var-layout.m12 __weak id wid;
64 __weak id weak_delegate;
326 __weak id wid;
327 __weak id wid1, wid2, wid3, wid4;
328 __weak id wid5, wid6, wid7, wid8;
329 __weak id wid9, wid10, wid11, wid12;
330 __weak id wid13, wid14, wid15, wid16;
357 __weak id wid;
358 __weak id wid1, wid2, wid3, wid4;
359 __weak id wid5, wid6, wid7, wid8;
[all …]
Darc-captured-block-var-layout.m12 __weak id wid;
66 __weak id weak_delegate;
325 __weak id wid;
326 __weak id wid1, wid2, wid3, wid4;
327 __weak id wid5, wid6, wid7, wid8;
328 __weak id wid9, wid10, wid11, wid12;
329 __weak id wid13, wid14, wid15, wid16;
356 __weak id wid;
357 __weak id wid1, wid2, wid3, wid4;
358 __weak id wid5, wid6, wid7, wid8;
[all …]

12345