| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | aarch64-sve-types.m | 3 // Check that we don't abort when SVE types are made nullable. This 7 @property(nullable) __SVInt8_t s8; // expected-error {{cannot be applied to non-pointer type}} 8 @property(nullable) __SVInt16_t s16; // expected-error {{cannot be applied to non-pointer type}} 9 @property(nullable) __SVInt32_t s32; // expected-error {{cannot be applied to non-pointer type}} 10 @property(nullable) __SVInt64_t s64; // expected-error {{cannot be applied to non-pointer type}} 12 @property(nullable) __SVUint8_t u8; // expected-error {{cannot be applied to non-pointer type}} 13 @property(nullable) __SVUint16_t u16; // expected-error {{cannot be applied to non-pointer type}} 14 @property(nullable) __SVUint32_t u32; // expected-error {{cannot be applied to non-pointer type}} 15 @property(nullable) __SVUint64_t u64; // expected-error {{cannot be applied to non-pointer type}} 17 @property(nullable) __SVFloat16_t f16; // expected-error {{cannot be applied to non-pointer type}} [all …]
|
| H A D | nullability.m | 43 @property(nullable,assign) NSFoo ** invalidProperty1; // expected-error{{nullability keyword 'nulla… 49 @property(nullable,retain,nullable) NSFoo *redundantProperty3; // expected-warning{{duplicate nulla… 54 @property(nullable,assign) NSFoo ** invalidProperty2; // expected-error{{nullability keyword 'nulla… 102 - (nullable NSFoo *)methodB:(null_unspecified NSFoo*)foo { // expected-error{{nullability specifier… 107 - (nonnull NSFoo *)methodC:(nullable NSFoo*)foo { 117 - (nullable id)returnsNullable; 124 _Nullable NSMergeReceiver *nullable, 165 - (nullable instancetype)returnMe; 166 + (nullable instancetype)returnInstanceOfMe; 223 @property (nullable, copy) id a, b, c; [all …]
|
| H A D | transfer-boxed-string-nullability.m | 33 …/ expected-warning@-7 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-nu… 34 …/ expected-warning@-7 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-nu… 35 …/ expected-warning@-5 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-nu… 36 …/ expected-warning@-5 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-nu…
|
| H A D | override-nullability.m | 7 - (nonnull id)bad:(nullable id)obj; // expected-note 2 {{previous declaration is here}} 8 - (nullable id)notAsBad:(nonnull id)obj; 12 - (nullable id)bad:(nonnull id)obj; // expected-warning {{conflicting nullability specifier on retu… 13 … nullability specifier on parameter types, 'nonnull' conflicts with existing specifier 'nullable'}} 14 - (nonnull id)notAsBad:(nullable id)obj;
|
| H A D | class-property-inheritance.m | 7 @property(nullable, readonly, strong, class) MyObject *foo; 17 @property(nullable, readonly, strong) MyObject *foo; 25 @property(nullable, readonly, copy) MyObject *foo; // expected-warning {{'copy' attribute on proper… 30 @property(nullable, readonly, strong, class) MyObject *foo;
|
| H A D | nullable-result.m | 20 …r; // expected-warning{{implicit conversion from nullable pointer 'X * _Nullable_result' to non-nu… 23 …p; // expected-warning{{implicit conversion from nullable pointer 'X * _Nullable_result' to non-nu…
|
| H A D | nullable-weak-property.m | 24 …); // expected-warning {{implicit conversion from nullable pointer 'NSFoo * _Nullable' to non-null…
|
| H A D | arc-property-decl-attrs.m | 89 @property(nonatomic, weak) id delegate; // Do not warn, nullable is inferred. 90 @property(nonatomic, weak, readonly) id ROdelegate; // Do not warn, nullable is inferred. 92 @property(nonatomic, weak, nullable) id Nullabledelete; // do not warn 98 @property(nonatomic, nullable) id stNullabledelete; // do not warn 103 @property(nonatomic, weak) id ddd; // Do not warn, nullable is inferred.
|
| H A D | nullability_macro.m | 14 - (void)setOnTintColor:(nullable UIColor *)onTintColor {
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | nullability.cpp | 76 void *_Nullable nullable; in AssignAndInitNonNull() local 77 …void *_Nonnull p(nullable); // expected-warning{{implicit conversion from nullable pointer 'void *… in AssignAndInitNonNull() 78 …void *_Nonnull p2{nullable}; // expected-warning{{implicit conversion from nullable pointer 'void … in AssignAndInitNonNull() 79 …void *_Nonnull p3 = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'vo… in AssignAndInitNonNull() 80 …void *_Nonnull p4 = nullable; // expected-warning{{implicit conversion from nullable pointer 'void… in AssignAndInitNonNull() 82 …nonnull = nullable; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullab… in AssignAndInitNonNull() 83 …nonnull = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'void * _Null… in AssignAndInitNonNull() 85 …TakeNonnull(nullable); //expected-warning{{implicit conversion from nullable pointer 'void * _Null… in AssignAndInitNonNull()
|
| /llvm-project-15.0.7/clang/docs/analyzer/developer-docs/ |
| H A D | nullability.rst | 12 **1) nullable** 14 If a pointer ``p`` has a nullable annotation and no explicit null check or assert, we should warn i… 19 Taking a branch on nullable pointers are the same like taking branch on null unspecified pointers. 21 Explicit cast from nullable to nonnul: 35 * Converting nonnull to nullable is Ok. 60 * Sending a message to a nullable pointer 62 …ght return a nonnull pointer, when it was sent to a nullable pointer the return type will be nulla… 63 * The result is nullable unless the receiver is known to be non null. 82 void takesNullable(nullable id obj) { 83 obj->ivar // we should assume obj is nullable and warn here [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/Inputs/ |
| H A D | nullability-consistency-2.h | 19 @property (retain,nullable) SomeClass *property2; 20 - (nullable SomeClass *)method1;
|
| H A D | nullability-pragmas-generics-1.h | 13 - (nullable T)maybeTee;
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator-for-nullability.h | 22 - (id)copyWithZone:(nullable NSZone *)zone; 26 - (id)mutableCopyWithZone:(nullable NSZone *)zone; 53 - (nullable NSString *)nullableStringByAppendingString:(NSString *)aString;
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | nullability.mm | 118 void testArgumentTracking(Dummy *_Nonnull nonnull, Dummy *_Nullable nullable) { 119 Dummy *p = nullable; 125 case 4: testMultiParamChecking(nonnull, nullable, nonnull); break; 127 …case 6: testMultiParamChecking(nonnull, nullable, nullable); break; // expected-warning {{Nullable… 128 …case 7: testMultiParamChecking(nullable, nullable, nonnull); // expected-warning {{Nullable pointe… 129 …case 8: testMultiParamChecking(nullable, nullable, nullable); // expected-warning {{Nullable point… 130 case 9: testMultiParamChecking((Dummy *_Nonnull)0, nullable, nonnull); break; 145 // The expected result: the most nullable of self and method return type.
|
| H A D | nullability-notes.m | 26 @property(copy, nullable) NSObject *x; // plist check ensures no control flow piece from here to 's… 33 NSObject *x = self.x; // expected-note{{Nullability 'nullable' is inferred}}
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-print-objc-property.m | 11 @property(nonatomic, strong, nullable) NSObject * objProperty; 20 // CHECK: @property(nonatomic, strong, readwrite, nullable) NSObject *objProperty;
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | complete-property-flags.m | 20 // CHECK-CC1-NEXT: {TypedText nullable} 39 // CHECK-CC1-ARC-NEXT: {TypedText nullable} 54 // CHECK-CC2-NEXT: {TypedText nullable}
|
| H A D | comment-objc-decls.m | 23 - (unsigned int)MethodMyProto:(nullable id)anObject inRange:(unsigned int)range; 34 // CHECK: <Declaration>- (unsigned int)MethodMyProto:(nullable id)anObject inRange:(unsigned int)ra…
|
| /llvm-project-15.0.7/clang/test/APINotes/Inputs/Frameworks/SomeKit.framework/Headers/ |
| H A D | SomeKitExplicitNullability.h | 3 @property (nonatomic, readwrite, retain, nullable) A *explicitNullableInstance;
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/ |
| H A D | nullability.NullableReturnedFromNonnull.rst | 6 Warns when a nullable pointer is returned from a function that has _Nonnull return type.
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | objc-interfaces.m | 10 -(nullable NoSuchType)foo3; // expected-error {{expected a type}}
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | block-for-lambda-conversion.mm | 17 + (nullable id)
|
| H A D | property-invalid-type.mm | 28 @property (nullable) auto c; // expected-error {{'auto' not allowed in interface member}}
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/Inputs/ |
| H A D | dwarfdump-objc.m | 16 @property (nullable) NSObject *Nullability;
|