Lines Matching refs:nullability
1 // RUN: %clang_cc1 -fsyntax-only -fblocks -Woverriding-method-mismatch -Wno-nullability-declspec %s…
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 '_Nullabl…
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 '_Nul…
46 …l) NSFoo * _Nonnull redundantProperty1; // expected-warning{{duplicate nullability specifier '_Non…
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 '_Nul…
57 …l) NSFoo * _Nonnull redundantProperty2; // expected-warning{{duplicate nullability specifier '_Non…
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.
160 - (nonnull instancetype _Nullable)initWithBlah2:(nonnull id)blah; // expected-error {{nullability s…