Searched refs:nullability (Results 1 - 15 of 15) sorted by relevance
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Basic/ |
H A D | 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'"; 27 operator <<(const DiagnosticBuilder &DB, DiagNullabilityKind nullability) argument
|
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 997 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 D | 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);
|
H A D | Type.cpp | 3479 // Check whether this is an attributed type with nullability 3482 if (auto nullability = attributed->getImmediateNullability()) 3483 return nullability; 3543 // Signed, unsigned, and floating-point types cannot have nullability. 3626 if (auto nullability = attributed->getImmediateNullability()) { 3628 return nullability;
|
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 2143 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 D | SemaType.cpp | 797 // Type arguments cannot have explicit qualifiers or nullability. 3009 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { argument 3010 switch (nullability) { 3026 llvm_unreachable("Unknown nullability kind."); 3037 /// Check whether there is a nullability attribute of any kind in the given 3072 /// This is used to determine the default nullability. 3248 /// Check for consistent use of nullability. 3259 // If we haven't seen any type nullability in this file, we won't warn now 3274 // Complain about missing nullability. 3364 // If we haven't seen any type nullability befor 5554 checkNullabilityTypeSpecifier(QualType &type, NullabilityKind nullability, SourceLocation nullabilityLoc, bool isContextSensitive) argument [all...] |
H A D | SemaExprObjC.cpp | 1254 if (auto nullability = AttributedType::stripOuterNullability(T)) { 1257 AttributedType::getNullabilityAttrKind(*nullability), 1275 /// to account for nullability. 1287 // Local function that transfers the nullability of the method's 1290 // If the method's result type has nullability, extract it. 1291 if (auto nullability = Method->getSendResultType(ReceiverType) 1293 // Strip off any outer nullability sugar from the provided type. 1296 // Form a new attributed type using the method result type's nullability. 1298 AttributedType::getNullabilityAttrKind(*nullability), 1351 // If this is a class message, ignore the nullability o [all...] |
H A D | SemaDeclObjC.cpp | 640 // 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 D | SemaChecking.cpp | 1185 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 D | SemaCodeComplete.cpp | 2131 if (auto nullability = AttributedType::stripOuterNullability(Type)) { 2132 switch (*nullability) {
|
H A D | TreeTransform.h | 5602 // Check whether we can add nullability; it is only represented as 5604 if (auto nullability = oldType->getImmediateNullability()) { 5607 << DiagNullabilityKind(*nullability, false) << modifiedType;
|
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Parse/ |
H A D | ParseObjc.cpp | 391 /// Add an attribute for a context-sensitive type nullability to the given 395 NullabilityKind nullability, 401 P.getNullabilityKeyword(nullability), 770 // Map a nullability property attribute to a context-sensitive keyword 827 /// Diagnose redundant or conflicting nullability information. 830 NullabilityKind nullability, 832 if (DS.getNullability() == nullability) { 834 << DiagNullabilityKind(nullability, true) 840 << DiagNullabilityKind(nullability, true) 1296 // Map a nullability specifie 393 addContextSensitiveTypeNullability(Parser &P, Declarator &D, NullabilityKind nullability, SourceLocation nullabilityLoc, bool &addedToDeclSpec) argument 828 diagnoseRedundantPropertyNullability(Parser &P, ObjCDeclSpec &DS, NullabilityKind nullability, SourceLocation nullabilityLoc) argument [all...] |
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Basic/ |
H A D | Diagnostic.h | 1110 /// A nullability kind paired with a bit indicating whether it used a 1115 DiagNullabilityKind nullability);
|
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Parse/ |
H A D | Parser.h | 311 /// to the given nullability kind. 312 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { argument 313 return Actions.getNullabilityKeyword(nullability);
|
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | 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. 390 /// A mapping that describes the nullability we've seen in each header file. 2973 /// Check whether a nullability type specifier can be added to the given 2976 /// \param type The type to which the nullability specifier will be 2979 /// \param nullability The nullability specifie [all...] |
Completed in 289 milliseconds