Lines Matching full:__weak
121 extern void test5_helper3(__weak id *); // expected-note {{passing argument to parameter here}}
122 test5_helper3(&x); // expected-error {{passing '__strong id *' to parameter of type '__weak id *' changes retain/release properties of pointer}}
145 __weak NSError *err;
273 __weak id *ptr = &x; // expected-error {{initializing '__weak id *' with an expression of type '__strong id *' changes retain/release properties of pointer}}
361 __weak id* wip;
363 test14_nowriteback(wip); // expected-error{{passing '__weak id *' to parameter of type '__autoreleasing id const *' changes retain/release properties of pointer}}
437 static __thread __weak id test20_weak; // expected-error {{thread-local variable has non-trivial ownership: type is '__weak id'}}
443 static __thread __weak id test20_weak; // expected-error {{thread-local variable has non-trivial ownership: type is '__weak id'}}
456 (void)(__weak id *)sip; // expected-error{{casting '__strong id *' to type '__weak id *' changes retain/release properties of pointer}}
457 (void)(__weak const id *)sip; // expected-error{{casting '__strong id *' to type '__weak id const *' changes retain/release properties of pointer}}
522 __weak id _myProp1;
530 @property (readonly) __weak id myProp1;
584 __weak id x = [Test30 new]; // expected-warning {{assigning retained object to weak variable}}
615 id Test32(__weak ITest32 *x) {
616 __weak ITest32 *y;
617 x->ivar = 0; // expected-error {{dereferencing a __weak pointer is not allowed}}
618 return y ? y->ivar // expected-error {{dereferencing a __weak pointer is not allowed}}
619 : (*x).ivar; // expected-error {{dereferencing a __weak pointer is not allowed}}
744 __weak id x = @"foo"; // no-warning
745 __weak id y = @{ key : value }; // expected-warning {{assigning dictionary literal to a weak variable; object will be released after assignment}}
746 __weak id z = @[ value ]; // expected-warning {{assigning array literal to a weak variable; object will be released after assignment}}
747 __weak id b = ^() {}; // expected-warning {{assigning block literal to a weak variable; object will be released after assignment}}
748 __weak id n = @42; // expected-warning {{assigning numeric literal to a weak variable; object will be released after assignment}}
749 __weak id e = @(42); // expected-warning {{assigning numeric literal to a weak variable; object will be released after assignment}}
750 __weak id m = @(41 + 1); // expected-warning {{assigning boxed expression to a weak variable; object will be released after assignment}}