Home | History | Annotate | Download | only in ARCMT

Lines Matching full:retain

18 - (id)retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
48 - (id)retain; // expected-note {{declaration has been explicitly marked unavailable here}}
66 - (id)retain { return self; } // expected-error {{ARC forbids implementation}}
77 [[a delegate] release]; // expected-error {{it is not safe to remove 'retain' message on the result of a 'delegate' message; the object that was passed to 'setDelegate:' may not be properly retained}} \
79 [a.delegate release]; // expected-error {{it is not safe to remove 'retain' message on the result of a 'delegate' message; the object that was passed to 'setDelegate:' may not be properly retained}} \
81 [unsafeS->unsafeObj retain]; // expected-error {{it is not safe to remove 'retain' message on an __unsafe_unretained type}} \
83 // expected-error {{'retain' is unavailable}}
84 id foo = [unsafeS->unsafeObj retain]; // no warning.
85 [global_foo retain]; // expected-error {{it is not safe to remove 'retain' message on a global variable}} \
90 [a retain];
111 SEL s = @selector(retain); // expected-error {{ARC forbids use of 'retain' in a @selector}}
337 @property (retain) id prop;
342 x.prop = ^{ [x foo]; }; // expected-warning {{likely to lead to a retain cycle}} \