• Home
  • Raw
  • Download

Lines Matching refs:nonnull

35 - (nonnull NSFoo *)methodWithFoo:(nonnull NSFoo *)foo;
37 - (nonnull NSFoo **)invalidMethod1; // expected-error{{nullability keyword 'nonnull' cannot be appl…
39 - (nonnull NSFoo * _Nullable)conflictingMethod1; // expected-error{{nullability specifier '_Nullabl…
40 - (nonnull NSFoo * _Nonnull)redundantMethod1; // expected-warning{{duplicate nullability specifier …
42 @property(nonnull,retain) NSFoo *property1;
46 @property(retain,nonnull) NSFoo * _Nonnull redundantProperty1; // expected-warning{{duplicate nulla…
53 @property(nonnull,retain) NSFoo *property2; category
57 @property(retain,nonnull) NSFoo * _Nonnull redundantProperty2; // expected-warning{{duplicate nulla…
70 // Check returning nil from a nonnull-returning method.
72 - (nonnull NSFoo *)methodWithFoo:(nonnull NSFoo *)foo {
91 - (nonnull NSFoo *)methodA:(nonnull NSFoo*)foo;
92 - (nonnull NSFoo *)methodB:(nonnull NSFoo*)foo;
102 …// expected-error{{nullability specifier 'nullable' conflicts with existing specifier 'nonnull'}} \
103 …ected-error{{nullability specifier 'null_unspecified' conflicts with existing specifier 'nonnull'}}
107 - (nonnull NSFoo *)methodC:(nullable NSFoo*)foo {
116 - (nonnull id)returnsNonNull;
122 _Nonnull NSMergeReceiver *nonnull,
137 ptr = [nonnull returnsNullable]; // expected-warning{{'id _Nullable'}}
138 ptr = [nonnull returnsNullUnspecified]; // expected-warning{{'id _Null_unspecified'}}
139 ptr = [nonnull returnsNonNull]; // expected-warning{{'id _Nonnull'}}
140 ptr = [nonnull returnsNone]; // expected-warning{{'id'}}
156 - (nonnull instancetype)initWithBlah:(nonnull id)blah;
160 - (nonnull instancetype _Nullable)initWithBlah2:(nonnull id)blah; // expected-error {{nullability s…