Home
last modified time | relevance | path

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

123

/external/bison/src/
Dnullable.c42 bool *nullable = NULL; variable
51 nullable[i - ntokens] ? "yes" : "no"); in nullable_print()
72 nullable = xcalloc (nvars, sizeof *nullable); in nullable_compute()
108 && ! nullable[rules_ruleno->lhs->number - ntokens]) in nullable_compute()
110 nullable[rules_ruleno->lhs->number - ntokens] = true; in nullable_compute()
121 if (r->useful && ! nullable[r->lhs->number - ntokens]) in nullable_compute()
123 nullable[r->lhs->number - ntokens] = true; in nullable_compute()
141 free (nullable); in nullable_free()
Dnullable.h25 extern bool *nullable;
DMakefile.am52 nullable.c nullable.h \
Dlalr.c181 if (nullable[sym - ntokens]) in initialize_F()
265 if (nullable[*rp - ntokens]) in build_relations()
/external/clang/test/SemaCXX/
Dnullability.cpp74 void *_Nullable nullable; in AssignAndInitNonNull() local
75 …void *_Nonnull p(nullable); // expected-warning{{implicit conversion from nullable pointer 'void *… in AssignAndInitNonNull()
76 …void *_Nonnull p2{nullable}; // expected-warning{{implicit conversion from nullable pointer 'void … in AssignAndInitNonNull()
77 …void *_Nonnull p3 = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'vo… in AssignAndInitNonNull()
78 …void *_Nonnull p4 = nullable; // expected-warning{{implicit conversion from nullable pointer 'void… in AssignAndInitNonNull()
80 …nonnull = nullable; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullab… in AssignAndInitNonNull()
81 …nonnull = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'void * _Null… in AssignAndInitNonNull()
83 …TakeNonnull(nullable); //expected-warning{{implicit conversion from nullable pointer 'void * _Null… in AssignAndInitNonNull()
/external/clang/test/SemaObjC/
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;
Dnullability.m43 @property(nullable,assign) NSFoo ** invalidProperty1; // expected-error{{nullability keyword 'nulla…
48 …roperty(null_unspecified,retain,nullable) NSFoo *conflictingProperty3; // expected-error{{nullabil…
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;
123 _Nullable NSMergeReceiver *nullable,
127 ptr = [nullable returnsNullable]; // expected-warning{{'id _Nullable'}}
128 ptr = [nullable returnsNullUnspecified]; // expected-warning{{'id _Nullable'}}
[all …]
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.
Dnullable-weak-property.m24 …); // expected-warning {{implicit conversion from nullable pointer 'NSFoo * _Nullable' to non-null…
Dparameterized_classes_subst.m114 - (nullable ViewType)maybeView;
126 …dControl maybeView]; // expected-warning{{from nullable pointer 'NSControl * _Nullable' to non-nu…
131 …eView]; // expected-warning{{from nullable pointer 'Nonnull_NSControl _Nullable' (aka 'NSControl …
/external/clang/docs/analyzer/
Dnullability.rst11 1) nullable
14 If a pointer 'p' has a nullable annotation and no explicit null check or assert, we should warn in …
18 Taking a branch on nullable pointers are the same like taking branch on null unspecified pointers.
20 Explicit cast from nullable to nonnul::
27 …ens, I will treat bar as nullable unspecified, this way all of the warnings will be suppressed. Tr…
33 - Converting nonnull to nullable is Ok.
34 - When there is an explicit cast from nonnull to nullable I will trust the cast (it is probable the…
53 - Sending a message to a nullable pointer
54 …ght return a nonnull pointer, when it was sent to a nullable pointer the return type will be nulla…
55 - The result is nullable unless the receiver is known to be non null.
[all …]
/external/webrtc/webrtc/api/objc/
DRTCIceServer.h21 @property(nonatomic, copy, readonly, nullable) NSString *username;
24 @property(nonatomic, copy, readonly, nullable) NSString *credential;
36 username:(nullable NSString *)username
37 credential:(nullable NSString *)credential
DRTCVideoFrame.h26 @property(nonatomic, readonly, nullable) const uint8_t *yPlane;
27 @property(nonatomic, readonly, nullable) const uint8_t *uPlane;
28 @property(nonatomic, readonly, nullable) const uint8_t *vPlane;
DRTCMediaConstraints.h21 (nullable NSDictionary<NSString *, NSString *> *)mandatory
23 (nullable NSDictionary<NSString *, NSString *> *)optional
DRTCIceCandidate.h21 @property(nonatomic, readonly, nullable) NSString *sdpMid;
39 sdpMid:(nullable NSString *)sdpMid
/external/clang/test/Analysis/
Dnullability.mm105 void testArgumentTracking(Dummy *_Nonnull nonnull, Dummy *_Nullable nullable) {
106 Dummy *p = nullable;
112 case 4: testMultiParamChecking(nonnull, nullable, nonnull); break;
114 case 6: testMultiParamChecking(nonnull, nullable, nullable); break; // expected-warning {{}}
115 case 7: testMultiParamChecking(nullable, nullable, nonnull); // expected-warning {{}}
116 case 8: testMultiParamChecking(nullable, nullable, nullable); // expected-warning {{}}
117 case 9: testMultiParamChecking((Dummy *_Nonnull)0, nullable, nonnull); break;
132 // The expected result: the most nullable of self and method return type.
Dnullability_nullonly.mm12 // The tracking of nullable values is turned off.
/external/guice/core/src/com/google/inject/spi/
DDependency.java43 private final boolean nullable; field in Dependency
46 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { in Dependency() argument
49 this.nullable = nullable; in Dependency()
83 return nullable; in isNullable()
/external/clang/test/SemaObjCXX/Inputs/
Dnullability-consistency-2.h13 @property (retain,nullable) SomeClass *property2;
14 - (nullable SomeClass *)method1;
Dnullability-pragmas-generics-1.h13 - (nullable T)maybeTee;
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
Dtypeannotation_test.py77 def assertNullable(self, type_str, nullable=True): argument
79 self.assertEquals(nullable, parsed_type.GetNullability(),
81 (type_str, 'not ' if nullable else ''))
84 return self.assertNullable(type_str, nullable=False)
/external/clang/test/Index/
Dcomplete-property-flags.m20 // CHECK-CC1-NEXT: {TypedText nullable}
39 // CHECK-CC1-ARC-NEXT: {TypedText nullable}
54 // CHECK-CC2-NEXT: {TypedText nullable}
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…
Dcomplete-method-decls.m89 -(nonnull I2 *)produceI2:(nullable I2 *)i2;
91 @property (nullable, strong) id prop;
92 @property (nullable, strong) void(^propWB)(int *_Nullable);
179 // CHECK-CCF: NotImplemented:{TypedText nullable} (40)
/external/selinux/sepolgen/src/sepolgen/
Dyacc.py1306 nullable = {}
1311 nullable[p.name] = 1
1314 if t not in nullable: break
1316 nullable[p.name] = 1
1317 if len(nullable) == num_nullable: break
1318 num_nullable = len(nullable)
1319 return nullable
1352 def dr_relation(C,trans,nullable): argument
1419 def compute_lookback_includes(C,trans,nullable): argument
1454 if p.prod[li] not in nullable: break
[all …]

123