Home | History | Annotate | Download | only in SemaObjC

Lines Matching full:variable

130     id x; // expected-note {{jump bypasses initialization of retaining variable}}
293 x = 0; // expected-error {{fast enumeration variables can't be modified in ARC by default; declare the variable __strong to allow this}}
297 x = 0; // expected-error {{read-only variable is not assignable}}
435 static __thread id test20_implicit; // expected-error {{thread-local variable has non-trivial ownership: type is '__strong id'}}
436 static __thread __strong id test20_strong; // expected-error {{thread-local variable has non-trivial ownership: type is '__strong id'}}
437 static __thread __weak id test20_weak; // expected-error {{thread-local variable has non-trivial ownership: type is '__weak id'}}
438 static __thread __autoreleasing id test20_autoreleasing; // expected-error {{thread-local variable has non-trivial ownership: type is '__autoreleasing id'}} expected-error {{global variables cannot have __autoreleasing ownership}}
441 static __thread id test20_implicit; // expected-error {{thread-local variable has non-trivial ownership: type is '__strong id'}}
442 static __thread __strong id test20_strong; // expected-error {{thread-local variable has non-trivial ownership: type is '__strong id'}}
443 static __thread __weak id test20_weak; // expected-error {{thread-local variable has non-trivial ownership: type is '__weak id'}}
444 static __thread __autoreleasing id test20_autoreleasing; // expected-error {{thread-local variable has non-trivial ownership: type is '__autoreleasing id'}} expected-error {{global variables cannot have __autoreleasing ownership}}
584 __weak id x = [Test30 new]; // expected-warning {{assigning retained object to weak variable}}
585 id __unsafe_unretained u = [Test30 new]; // expected-warning {{assigning retained object to unsafe_unretained variable}}
587 x = [Test30 new]; // expected-warning {{assigning retained object to weak variable}}
588 u = [Test30 new]; // expected-warning {{assigning retained object to unsafe_unretained variable}}
732 picker1 = [[Radar11814185 alloc] init]; // expected-warning {{assigning retained object to weak variable; object will be released after assignment}}
740 // <rdar://problem/12569201>. Warn on cases of initializing a weak variable
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}}
753 y = @{ key : value }; // expected-warning {{assigning dictionary literal to a weak variable; object will be released after assignment}}
754 z = @[ value ]; // expected-warning {{assigning array literal to a weak variable; object will be released after assignment}}
755 b = ^() {}; // expected-warning {{assigning block literal to a weak variable; object will be released after assignment}}
756 n = @42; // expected-warning {{assigning numeric literal to a weak variable; object will be released after assignment}}
757 e = @(42); // expected-warning {{assigning numeric literal to a weak variable; object will be released after assignment}}
758 m = @(41 + 1); // expected-warning {{assigning boxed expression to a weak variable; object will be released after assignment}}