Searched refs:NullabilityKind (Results 1 – 18 of 18) sorted by relevance
/external/clang/include/clang/Basic/ |
D | Specifiers.h | 266 enum class NullabilityKind : uint8_t { enum 279 llvm::StringRef getNullabilitySpelling(NullabilityKind kind,
|
D | Diagnostic.h | 1112 typedef std::pair<NullabilityKind, bool> DiagNullabilityKind;
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 650 StringRef clang::getNullabilitySpelling(NullabilityKind kind, in getNullabilitySpelling() 653 case NullabilityKind::NonNull: in getNullabilitySpelling() 656 case NullabilityKind::Nullable: in getNullabilitySpelling() 659 case NullabilityKind::Unspecified: in getNullabilitySpelling()
|
D | Diagnostic.cpp | 31 case NullabilityKind::NonNull: in operator <<() 35 case NullabilityKind::Nullable: in operator <<() 39 case NullabilityKind::Unspecified: in operator <<()
|
/external/clang/lib/Parse/ |
D | ParseObjc.cpp | 395 NullabilityKind nullability, in addContextSensitiveTypeNullability() 831 NullabilityKind nullability, in diagnoseRedundantPropertyNullability() 956 NullabilityKind::NonNull, in ParseObjCPropertyAttribute() 959 DS.setNullability(Tok.getLocation(), NullabilityKind::NonNull); in ParseObjCPropertyAttribute() 963 NullabilityKind::Nullable, in ParseObjCPropertyAttribute() 966 DS.setNullability(Tok.getLocation(), NullabilityKind::Nullable); in ParseObjCPropertyAttribute() 970 NullabilityKind::Unspecified, in ParseObjCPropertyAttribute() 973 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified); in ParseObjCPropertyAttribute() 977 NullabilityKind::Unspecified, in ParseObjCPropertyAttribute() 980 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified); in ParseObjCPropertyAttribute() [all …]
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 1997 *SubTnullability == NullabilityKind::Unspecified || in hasSameNullabilityTypeQualifier() 1998 *SuperTnullability == NullabilityKind::Unspecified) in hasSameNullabilityTypeQualifier() 2004 return (*SuperTnullability == NullabilityKind::NonNull && in hasSameNullabilityTypeQualifier() 2005 *SubTnullability == NullabilityKind::Nullable); in hasSameNullabilityTypeQualifier() 2010 return (*SuperTnullability == NullabilityKind::Nullable && in hasSameNullabilityTypeQualifier() 2011 *SubTnullability == NullabilityKind::NonNull); in hasSameNullabilityTypeQualifier()
|
D | Type.h | 1940 Optional<NullabilityKind> getNullability(const ASTContext &context) const; 3691 llvm::Optional<NullabilityKind> getImmediateNullability() const; 3695 static Kind getNullabilityAttrKind(NullabilityKind kind) { 3697 case NullabilityKind::NonNull: 3700 case NullabilityKind::Nullable: 3703 case NullabilityKind::Unspecified: 3718 static Optional<NullabilityKind> stripOuterNullability(QualType &T);
|
/external/clang/lib/Sema/ |
D | Sema.cpp | 355 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion() 356 if (!ExprNullability || *ExprNullability != NullabilityKind::Nullable) in diagnoseNullableToNonnullConversion() 359 Optional<NullabilityKind> TypeNullability = DstType->getNullability(Context); in diagnoseNullableToNonnullConversion() 360 if (!TypeNullability || *TypeNullability != NullabilityKind::NonNull) in diagnoseNullableToNonnullConversion()
|
D | SemaType.cpp | 2981 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword() 2983 case NullabilityKind::NonNull: in getNullabilityKeyword() 2988 case NullabilityKind::Nullable: in getNullabilityKeyword() 2993 case NullabilityKind::Unspecified: in getNullabilityKeyword() 3318 Optional<NullabilityKind> inferNullability; in GetFullTypeForDeclarator() 3407 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator() 3427 inferNullability = NullabilityKind::NonNull; in GetFullTypeForDeclarator() 3438 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator() 3459 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator() 5502 NullabilityKind nullability, in checkNullabilityTypeSpecifier() [all …]
|
D | SemaObjCProperty.cpp | 2144 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl() 2214 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl() 2387 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()
|
D | SemaCodeComplete.cpp | 2136 case NullabilityKind::NonNull: in formatObjCParamQualifiers() 2140 case NullabilityKind::Nullable: in formatObjCParamQualifiers() 2144 case NullabilityKind::Unspecified: in formatObjCParamQualifiers()
|
D | SemaExprObjC.cpp | 1398 = static_cast<NullabilityKind>(newResultNullabilityIdx-1); in getMessageSendResultType()
|
D | SemaChecking.cpp | 1187 if (*nullability == NullabilityKind::NonNull) in CheckNonNullExpr() 1270 return *nullability == NullabilityKind::NonNull; in isNonNullType()
|
/external/clang/include/clang/Sema/ |
D | DeclSpec.h | 817 NullabilityKind getNullability() const { in getNullability() 821 return static_cast<NullabilityKind>(Nullability); in getNullability() 831 void setNullability(SourceLocation loc, NullabilityKind kind) { in setNullability()
|
D | Sema.h | 2985 bool checkNullabilityTypeSpecifier(QualType &type, NullabilityKind nullability, 9170 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability);
|
/external/clang/lib/AST/ |
D | Type.cpp | 3472 Optional<NullabilityKind> Type::getNullability(const ASTContext &context) const { in getNullability() 3609 llvm::Optional<NullabilityKind> AttributedType::getImmediateNullability() const { in getImmediateNullability() 3611 return NullabilityKind::NonNull; in getImmediateNullability() 3613 return NullabilityKind::Nullable; in getImmediateNullability() 3615 return NullabilityKind::Unspecified; in getImmediateNullability() 3619 Optional<NullabilityKind> AttributedType::stripOuterNullability(QualType &T) { in stripOuterNullability()
|
D | DeclPrinter.cpp | 1289 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 312 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword()
|