HomeSort by relevance Sort by last modified time
    Searched full:__weak (Results 1 - 25 of 158) sorted by null

1 2 3 4 5 6 7

  /external/clang/test/SemaObjCXX/
overload-gc.mm 4 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) {
arc-unavailable-for-weakref.mm 11 __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 object}} \
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 object (…)
    [all...]
arc-type-traits.mm 17 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...]
arc-type-conversion.mm 50 (void)static_cast<__weak id*>(idp); // expected-error{{static_cast from '__strong id *' to '__weak id *' is not allowed}}
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 const *' to '__weak id *' casts a (…)
    [all...]
gc-attributes.mm 6 void f0(__strong A**); // expected-note{{candidate function not viable: 1st argument ('A *__weak *') has __weak ownership, but parameter has __strong ownership}}
10 static __weak A *a2;
15 void f1(__weak A**); // expected-note{{candidate function not viable: 1st argument ('A *__strong *') has __strong ownership, but parameter has __weak ownership}}
arc-templates.mm 52 int check_ptr_strong2[is_pointer_strong<__weak id*>::value? -1 : 1];
64 struct make_strong_pointer<__weak T> {
88 int check_make_strong6[is_same<make_strong_pointer<__weak id>::type, __strong id *>::value ? 1 : -1];
92 typedef __weak T type;
95 int check_make_weak0[is_same<make_weak<id>::type, __weak id>::value? 1 : -1];
96 int check_make_weak1[is_same<make_weak<__strong id>::type, __weak id>::value? 1 : -1];
97 int check_make_weak2[is_same<make_weak<__autoreleasing id>::type, __weak id>::value? 1 : -1];
102 typedef __weak T_type type; // expected-error{{the type 'T_type' (aka '__weak id') is already explicitly ownership-qualified}} \
106 int check_make_weak_fail0[is_same<make_weak_fail<__weak id>::type, __weak id>::value? 1 : -1]; // expected-note{{in instantiation of template class 'make_ (…)
    [all...]
arc-overloading.mm 4 int &f0(id __strong const *); // expected-note{{candidate function not viable: 1st argument ('__weak id *') has __weak ownership, but parameter has __strong 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
    [all...]
  /external/clang/test/SemaObjC/
arc-no-runtime.m 5 __weak id x; // expected-error {{the current deployment target does not support automated __weak references}}
6 __weak void *v; // expected-warning {{'__weak' only applies to Objective-C object or block pointer types}}
15 @synthesize testObjectWeakProperty; // expected-error {{the current deployment target does not support automated __weak references}}
error-property-gc-attr.m 7 __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 @synthesize pweak=IVAR; // expected-error {{existing instance variable 'IVAR' for __weak property 'pweak' must be __weak}}
23 @synthesize NOT=II; // expected-error {{existing instance variable 'II' for strong property 'NOT' may not be __weak}}
    [all...]
arc-unavailable-for-weakref.m 11 __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 object}} \
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 object (…)
    [all...]
gc-attributes.m 10 static __weak A *a2;
12 f0(&a2); // expected-warning{{passing 'A *__weak *' to parameter of type 'A *__strong *' discards qualifiers}}
15 void f1(__weak A**); // expected-note{{passing argument to parameter here}}
21 f1(&a2); // expected-warning{{passing 'A *__strong *' to parameter of type 'A *__weak *' discards qualifiers}}
warn-weak-field.m 5 __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}}
arc-property.m 5 id __weak myString; // expected-error {{existing instance variable 'myString' for strong property 'myString' may not be __weak}}
7 id __weak myString2; // expected-error {{existing instance variable 'myString2' for strong property 'myString2' may not be __weak}}
8 id __weak myString3;
9 id StrongIvar5; // expected-error {{existing instance variable 'StrongIvar5' for __weak property 'myString5' must be __weak}}
17 @property __weak id myString5; // expected-note {{property declared here}}
34 id __unsafe_unretained x; // expected-error {{existing instance variable 'x' for __weak property 'x' must be __weak}}
    [all...]
objc2-warn-weak-decl.m 4 __weak id p; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
9 __weak id local; // expected-warning {{Objective-C GC does not allow weak variables on the stack}}
no-gc-weak-test.m 8 @property(nonatomic,readwrite,assign) id __weak delegate;
18 id __weak _selectionRect;
weak-property.m 6 __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}}
attr-objc-gc.m 12 static __weak int h; // expected-warning {{'__weak' only applies to pointer types; type here is 'int'}}
14 // TODO: it would be great if this reported as __weak
15 #define WEAK __weak
18 /* expected-warning {{'__weak' only applies to pointer types; type here is 'int'}}*/ static __we\
arc-property-decl-attrs.m 7 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 __weak}} expected-error {{property attributes 'strong' and 'weak' are mutually exclusive}}
47 @property(retain) __weak id y; // expected-error {{strong property 'y' may not also be declared __weak}} expected-error {{property attributes 'retain' and 'weak' are mutually exclusive}}
53 @property(copy) __weak id y; // expected-error {{strong property 'y' may not also be declared __weak}} expected-error {{property attributes 'copy' and 'weak' are mutually exclusive}}
59 @property(assign) __weak id y; // expected-error {{property attributes 'assign' and 'weak' are mutually exclusive}
    [all...]
  /external/clang/test/CodeGenObjC/
objc2-weak-assign.m 6 __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) {
gc-weak-attribute.m 6 __weak id wObject;
10 @property (readwrite, weak) __weak id wRandom;
11 @property (readwrite, assign) __weak id wAnother;
  /external/chromium_org/chrome/browser/ui/cocoa/autofill/
password_generation_popup_view_cocoa.h 24 __weak autofill::PasswordGenerationPopupController* controller_;
26 __weak NSTextField* passwordField_;
27 __weak NSTextField* passwordSubtextField_;
28 __weak HyperlinkTextView* helpTextView_;
  /external/clang/test/ARCMT/
GC-no-finalize-removal.m 45 __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
    [all...]
GC.m 45 __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
    [all...]
GC-no-arc-runtime.m 45 __weak id s;
46 __weak QQ *q;
51 @property (assign) I3 *__weak pw1, *__weak pw2;
59 @property (assign) I4Impl *__weak pw1, *__weak pw2;
74 __weak id prop;
76 @property (readonly) __weak id prop;
  /external/clang/test/CodeGenObjCXX/
write-barrier-global-assign.mm 12 __weak CPDestUser* weakUser = FUNC();
23 static __weak CPDestUser* wUser = FUNC();

Completed in 197 milliseconds

1 2 3 4 5 6 7