/external/clang/test/Parser/ |
nullability.c | 1 // 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) 11 # error Nullability should always be supported 14 #if !__has_extension(nullability) 15 # error Nullability should always be supported as an extension
|
/external/clang/test/Sema/ |
non-null-warning.c | 4 #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'}}
|
nullability.c | 1 // 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 specifiers via a typedef are okay [all...] |
/external/clang/test/SemaCXX/ |
nullability.cpp | 1 // 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 13 // Nullability applies to all pointer types. 16 typedef nullptr_t _Nonnull nonnull_nullptr_t; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'nullptr_t'}} 18 // Nullability can move into member pointers (this is suppressing a warning). 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>'} [all...] |
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/ |
typeannotation.py | 198 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/ |
Diagnostic.cpp | 28 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'"; [all...] |
/external/clang/lib/AST/ |
DeclPrinter.cpp | 997 if (auto nullability = AttributedType::stripOuterNullability(T)) 998 Out << getNullabilitySpelling(*nullability, true) << ' '; [all...] |
ASTDiagnostic.cpp | 70 // 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); [all...] |
Type.cpp | [all...] |
/libcore/luni/src/test/java/tests/java/sql/ |
DatabaseMetaDataTest.java | [all...] |
/external/clang/lib/Sema/ |
SemaObjCProperty.cpp | [all...] |
SemaType.cpp | 125 // Nullability qualifiers. 642 // Nullability specifiers cannot go after the declarator-id. 792 // Type arguments cannot have explicit qualifiers or nullability. [all...] |
SemaExprObjC.cpp | [all...] |
SemaDeclObjC.cpp | 640 // nullability. 4055 auto nullability = type->getNullability(S.Context); local [all...] |
SemaChecking.cpp | [all...] |
SemaCodeComplete.cpp | [all...] |
TreeTransform.h | [all...] |
/external/clang/lib/Parse/ |
ParseObjc.cpp | 391 /// 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) [all...] |
/external/clang/include/clang/Parse/ |
Parser.h | 311 /// to the given nullability kind. 312 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { 313 return Actions.getNullabilityKeyword(nullability); [all...] |
/external/clang/include/clang/Basic/ |
Diagnostic.h | [all...] |
/external/guice/extensions/persist/lib/ |
hibernate-annotations.jar | |
hsqldb.jar | |
hibernate3.jar | |
/external/clang/include/clang/Sema/ |
Sema.h | 214 /// 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. 237 FileNullability Nullability; 244 return Cache.Nullability; 248 Map[Cache.File] = Cache.Nullability; 253 Cache.Nullability = Map[file]; 254 return Cache.Nullability; [all...] |