Lines Matching refs:nullability

1 // RUN: %clang_cc1 -fsyntax-only -fblocks -Woverriding-method-mismatch -Wno-nullability-declspec -W…
17 // Conflicts from nullability moving into Objective-C pointer type.
32 // Context-sensitive keywords and property attributes for nullability.
37 - (nonnull NSFoo **)invalidMethod1; // expected-error{{nullability keyword 'nonnull' cannot be appl…
38 // expected-note@-1{{use nullability type specifier '_Nonnull' to affect the innermost pointer type…
39 - (nonnull NSFoo * _Nullable)conflictingMethod1; // expected-error{{nullability specifier 'nonnull'…
40 - (nonnull NSFoo * _Nonnull)redundantMethod1; // expected-warning{{duplicate nullability specifier …
43 @property(nullable,assign) NSFoo ** invalidProperty1; // expected-error{{nullability keyword 'nulla…
44 // expected-note@-1{{use nullability type specifier '_Nullable' to affect the innermost pointer typ…
45 …ied,retain) NSFoo * _Nullable conflictingProperty1; // expected-error{{nullability specifier 'null…
46 …l) NSFoo * _Nonnull redundantProperty1; // expected-warning{{duplicate nullability specifier 'nonn…
48 …ified,retain,nullable) NSFoo *conflictingProperty3; // expected-error{{nullability specifier 'null…
49 …in,nullable) NSFoo *redundantProperty3; // expected-warning{{duplicate nullability specifier 'null…
54 @property(nullable,assign) NSFoo ** invalidProperty2; // expected-error{{nullability keyword 'nulla…
55 // expected-note@-1{{use nullability type specifier '_Nullable' to affect the innermost pointer typ…
56 …ied,retain) NSFoo * _Nullable conflictingProperty2; // expected-error{{nullability specifier 'null…
57 …l) NSFoo * _Nonnull redundantProperty2; // expected-warning{{duplicate nullability specifier 'nonn…
102 - (nullable NSFoo *)methodB:(null_unspecified NSFoo*)foo { // expected-error{{nullability specifier…
103 …// expected-error{{nullability specifier 'null_unspecified' conflicts with existing specifier 'non…
113 // Checking merging of nullability when sending a message.
168 - (nonnull instancetype _Nullable)initWithBlah2:(nonnull id)blah; // expected-error {{nullability s…
242 // Check nullability of conditional expressions.
277 - (void)nestedBad:(int [2][_Nonnull 2])x; // expected-error {{nullability specifier '_Nonnull' cann…
280 - (void)withTypedefBad:(INTS _Nonnull[2])x; // expected-error{{nullability specifier '_Nonnull' can…
283 …d-error {{nullability keyword 'nonnull' cannot be applied to multi-level pointer type 'void * _Nul…
296 // Check that we don't propagate the nullability specifier on the receiver to
298 // nullability specifier.