Home
last modified time | relevance | path

Searched refs:nullable (Results 1 – 25 of 42) sorted by relevance

12

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Daarch64-sve-types.m3 // 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 Dnullability.m43 @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 Dtransfer-boxed-string-nullability.m33 …/ 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 Doverride-nullability.m7 - (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 Dclass-property-inheritance.m7 @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 Dnullable-result.m20 …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 Dnullable-weak-property.m24 …); // expected-warning {{implicit conversion from nullable pointer 'NSFoo * _Nullable' to non-null…
H A Darc-property-decl-attrs.m89 @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 Dnullability_macro.m14 - (void)setOnTintColor:(nullable UIColor *)onTintColor {
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dnullability.cpp76 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 Dnullability.rst12 **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 Dnullability-consistency-2.h19 @property (retain,nullable) SomeClass *property2;
20 - (nullable SomeClass *)method1;
H A Dnullability-pragmas-generics-1.h13 - (nullable T)maybeTee;
/llvm-project-15.0.7/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator-for-nullability.h22 - (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 Dnullability.mm118 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 Dnullability-notes.m26 @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 Dast-print-objc-property.m11 @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 Dcomplete-property-flags.m20 // CHECK-CC1-NEXT: {TypedText nullable}
39 // CHECK-CC1-ARC-NEXT: {TypedText nullable}
54 // CHECK-CC2-NEXT: {TypedText nullable}
H A Dcomment-objc-decls.m23 - (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 DSomeKitExplicitNullability.h3 @property (nonatomic, readwrite, retain, nullable) A *explicitNullableInstance;
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/
H A Dnullability.NullableReturnedFromNonnull.rst6 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 Dobjc-interfaces.m10 -(nullable NoSuchType)foo3; // expected-error {{expected a type}}
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dblock-for-lambda-conversion.mm17 + (nullable id)
H A Dproperty-invalid-type.mm28 @property (nullable) auto c; // expected-error {{'auto' not allowed in interface member}}
/llvm-project-15.0.7/llvm/test/DebugInfo/Inputs/
H A Ddwarfdump-objc.m16 @property (nullable) NSObject *Nullability;

12