Lines Matching refs:_Nonnull

5 - (void)methodTakingIntPtr:(_Nonnull int *)ptr;
6 - (_Nonnull int *)methodReturningIntPtr;
10 typedef NSFoo * _Nonnull nonnull_NSFoo_ptr;
11 typedef id _Nonnull nonnull_id;
12 typedef SEL _Nonnull nonnull_SEL;
15 typedef _Nonnull NSFoo * nonnull_NSFoo_ptr_2;
18 typedef _Nonnull NSFoo * _Nullable conflict_NSFoo_ptr_2; // expected-error{{'_Nonnull' cannot be ap…
24 // Check returning nil from a _Nonnull-returning method.
26 - (void)methodTakingIntPtr:(_Nonnull int *)ptr { }
27 - (_Nonnull int *)methodReturningIntPtr {
38 // expected-note@-1{{use nullability type specifier '_Nonnull' to affect the innermost pointer type…
39 …// expected-error{{nullability specifier '_Nullable' conflicts with existing specifier '_Nonnull'}}
40 - (nonnull NSFoo * _Nonnull)redundantMethod1; // expected-warning{{duplicate nullability specifier …
46 …operty(retain,nonnull) NSFoo * _Nonnull redundantProperty1; // expected-warning{{duplicate nullabi…
57 …operty(retain,nonnull) NSFoo * _Nonnull redundantProperty2; // expected-warning{{duplicate nullabi…
60 void test_accepts_nonnull_null_pointer_literal(NSFoo *foo, _Nonnull NSBar *bar) {
67 …ng{{incompatible pointer types initializing 'int *' with an expression of type 'NSFoo * _Nonnull'}}
85 return ip; // expected-warning{{result type 'NSFoo * _Nonnull'}}
98 …ng{{incompatible pointer types initializing 'int *' with an expression of type 'NSFoo * _Nonnull'}}
99 return ptr; // expected-warning{{result type 'NSFoo * _Nonnull'}}
109 return ip; // expected-warning{{result type 'NSFoo * _Nonnull'}}
122 _Nonnull NSMergeReceiver *nonnull,
139 ptr = [nonnull returnsNonNull]; // expected-warning{{'id _Nonnull'}}
160 …/ expected-error {{nullability specifier '_Nullable' conflicts with existing specifier '_Nonnull'}}
162 + (_Nonnull instancetype)returnInstanceOfMe2;
165 void test_instancetype(InitializableClass * _Nonnull ic, id _Nonnull object) {
172 …ted-warning{{incompatible pointer types assigning to 'int *' from 'InitializableClass * _Nonnull'}}
194 return ip; // expected-warning{{result type 'NSResettable * _Nonnull'}}