Searched refs:nullability (Results 1 - 23 of 23) sorted by relevance

/external/clang/test/Parser/
H A Dnullability.c1 // RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify
3 _Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}
10 #if !__has_feature(nullability)
14 #if !__has_extension(nullability)
/external/clang/test/Sema/
H A Dnon-null-warning.c4 #if __has_feature(nullability)
6 # error nullability feature should be defined
20 int *foo1(int * _Nullable x) { // expected-warning {{nullability specifier '_Nullable' conflicts with existing specifier '_Nonnull'}}
32 int *foo3(int * _Nonnull x) { // expected-warning {{nullability specifier '_Nonnull' conflicts with existing specifier '_Nullable'}}
H A Dnullability.c1 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wnullable-to-nonnull-conversion -Wno-nullability-declspec %s -verify
3 #if __has_feature(nullability)
5 # error nullability feature should be defined
10 // Parse nullability type specifiers.
15 // Redundant nullability type specifiers.
16 typedef int * _Nonnull _Nonnull redundant_1; // expected-warning{{duplicate nullability specifier '_Nonnull'}}
18 // Conflicting nullability type specifiers.
19 typedef int * _Nonnull _Nullable conflicting_1; // expected-error{{nullability specifier '_Nonnull' conflicts with existing specifier '_Nullable'}}
20 typedef int * _Null_unspecified _Nonnull conflicting_2; // expected-error{{nullability specifier '_Null_unspecified' conflicts with existing specifier '_Nonnull'}}
22 // Redundant nullability specifier
[all...]
/external/clang/test/SemaCXX/
H A Dnullability.cpp1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify -Wnullable-to-nonnull-conversion
3 #if __has_feature(nullability)
5 # error nullability feature should be defined
16 typedef nullptr_t _Nonnull nonnull_nullptr_t; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'nullptr_t'}}
26 typedef _Nonnull T type; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'}}
27 // expected-error@-1{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'nullptr_t'}}
39 typedef _Nonnull AddNonNull<T> invalid1; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull<T>'}}
40 typedef _Nonnull AddNonNull2 invalid2; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull2<T>'}}
41 typedef _Nonnull AddNonNull2<T> invalid3; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull2<T>'}}
44 // Don't move past a dependent type even if we know that nullability
[all...]
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
H A Dtypeannotation.py198 and NULLABILITY_UNKNOWN if the nullability cannot be determined.
215 nullability = sub_type.GetNullability()
216 if nullability == self.NULLABILITY_UNKNOWN:
217 maybe_nullable = nullability
218 elif nullability:
/external/clang/lib/Basic/
H A DDiagnostic.cpp28 DiagNullabilityKind nullability) {
30 switch (nullability.first) {
32 string = nullability.second ? "'nonnull'" : "'_Nonnull'";
36 string = nullability.second ? "'nullable'" : "'_Nullable'";
40 string = nullability.second ? "'null_unspecified'" : "'_Null_unspecified'";
27 operator <<(const DiagnosticBuilder &DB, DiagNullabilityKind nullability) argument
/external/clang/lib/AST/
H A DDeclPrinter.cpp997 if (auto nullability = AttributedType::stripOuterNullability(T))
998 Out << getNullabilitySpelling(*nullability, true) << ' ';
1288 if (auto nullability = AttributedType::stripOuterNullability(T)) {
1289 if (*nullability == NullabilityKind::Unspecified &&
1295 << getNullabilitySpelling(*nullability, true);
H A DASTDiagnostic.cpp70 // desugared. Preserve nullability attribute on desugared types.
75 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) {
77 AttributedType::getNullabilityAttrKind(*nullability), RT, RT);
86 if (auto nullability =
89 AttributedType::getNullabilityAttrKind(*nullability), PT, PT);
H A DType.cpp3475 // Check whether this is an attributed type with nullability
3478 if (auto nullability = attributed->getImmediateNullability())
3479 return nullability;
3539 // Signed, unsigned, and floating-point types cannot have nullability.
3621 if (auto nullability = attributed->getImmediateNullability()) {
3623 return nullability;
/external/clang/lib/Sema/
H A DSemaObjCProperty.cpp2143 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) {
2144 if (*nullability == NullabilityKind::Unspecified)
2213 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){
2214 if (*nullability == NullabilityKind::Unspecified)
2386 if (auto nullability = PropertyTy->getNullability(Context)) {
2387 if (*nullability == NullabilityKind::NonNull)
H A DSemaType.cpp792 // Type arguments cannot have explicit qualifiers or nullability.
2981 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { argument
2982 switch (nullability) {
2998 llvm_unreachable("Unknown nullability kind.");
3009 /// Check whether there is a nullability attribute of any kind in the given
3044 /// This is used to determine the default nullability.
3219 /// Check for consistent use of nullability.
3230 // If we haven't seen any type nullability in this file, we won't warn now
3245 // Complain about missing nullability.
3333 // If we haven't seen any type nullability befor
5501 checkNullabilityTypeSpecifier(QualType &type, NullabilityKind nullability, SourceLocation nullabilityLoc, bool isContextSensitive) argument
[all...]
H A DSemaExprObjC.cpp1256 if (auto nullability = AttributedType::stripOuterNullability(T)) {
1259 AttributedType::getNullabilityAttrKind(*nullability),
1277 /// to account for nullability.
1289 // Local function that transfers the nullability of the method's
1292 // If the method's result type has nullability, extract it.
1293 if (auto nullability = Method->getSendResultType(ReceiverType)
1295 // Strip off any outer nullability sugar from the provided type.
1298 // Form a new attributed type using the method result type's nullability.
1300 AttributedType::getNullabilityAttrKind(*nullability),
1353 // If this is a class message, ignore the nullability o
[all...]
H A DSemaDeclObjC.cpp640 // nullability.
4046 /// Merge type nullability from for a redeclaration of the same entity,
4054 // Determine the nullability of both types.
4055 auto nullability = type->getNullability(S.Context); local
4058 // Easy case: both have nullability.
4059 if (nullability.hasValue() == prevNullability.hasValue()) {
4060 // Neither has nullability; continue.
4061 if (!nullability)
4065 if (*nullability == *prevNullability)
4068 // Complain about mismatched nullability
[all...]
H A DSemaChecking.cpp1185 if (auto nullability
1187 if (*nullability == NullabilityKind::NonNull)
1267 /// Determine whether the given type has a non-null nullability annotation.
1269 if (auto nullability = type->getNullability(ctx))
1270 return *nullability == NullabilityKind::NonNull;
1343 // Fill in non-null argument information from the nullability
H A DSemaCodeComplete.cpp2134 if (auto nullability = AttributedType::stripOuterNullability(Type)) {
2135 switch (*nullability) {
H A DTreeTransform.h5581 // Check whether we can add nullability; it is only represented as
5583 if (auto nullability = oldType->getImmediateNullability()) {
5586 << DiagNullabilityKind(*nullability, false) << modifiedType;
/external/clang/lib/Parse/
H A DParseObjc.cpp391 /// Add an attribute for a context-sensitive type nullability to the given
395 NullabilityKind nullability,
401 P.getNullabilityKeyword(nullability),
771 // Map a nullability property attribute to a context-sensitive keyword
828 /// Diagnose redundant or conflicting nullability information.
831 NullabilityKind nullability,
833 if (DS.getNullability() == nullability) {
835 << DiagNullabilityKind(nullability, true)
841 << DiagNullabilityKind(nullability, true)
1297 // Map a nullability specifie
393 addContextSensitiveTypeNullability(Parser &P, Declarator &D, NullabilityKind nullability, SourceLocation nullabilityLoc, bool &addedToDeclSpec) argument
829 diagnoseRedundantPropertyNullability(Parser &P, ObjCDeclSpec &DS, NullabilityKind nullability, SourceLocation nullabilityLoc) argument
[all...]
/external/clang/include/clang/Basic/
H A DDiagnostic.h1110 /// A nullability kind paired with a bit indicating whether it used a
1115 DiagNullabilityKind nullability);
/external/clang/include/clang/Parse/
H A DParser.h311 /// to the given nullability kind.
312 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { argument
313 return Actions.getNullabilityKeyword(nullability);
/external/guice/extensions/persist/lib/
H A Dhibernate-annotations.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/hibernate/ org/hibernate/annotationfactory/ org/hibernate/annotations/ org/ ...
H A Dhsqldb.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/hsqldb/ org/hsqldb/index/ org/hsqldb/jdbc/ org/ ...
H A Dhibernate3.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/hibernate/ org/hibernate/AssertionFailure.class AssertionFailure. ...
/external/clang/include/clang/Sema/
H A DSema.h214 /// Describes whether we've seen any nullability information for the given
218 /// not have a corresponding nullability annotation.
224 /// Whether we saw any type nullability annotations in the given file.
228 /// A mapping from file IDs to a record of whether we've seen nullability
231 /// A mapping from file IDs to the nullability information for each file ID.
390 /// A mapping that describes the nullability we've seen in each header file.
2969 /// Check whether a nullability type specifier can be added to the given
2972 /// \param type The type to which the nullability specifier will be
2975 /// \param nullability The nullability specifie
[all...]

Completed in 946 milliseconds