Home
last modified time | relevance | path

Searched refs:NullabilityKind (Results 1 – 18 of 18) sorted by relevance

/external/clang/include/clang/Basic/
DSpecifiers.h266 enum class NullabilityKind : uint8_t { enum
279 llvm::StringRef getNullabilitySpelling(NullabilityKind kind,
DDiagnostic.h1112 typedef std::pair<NullabilityKind, bool> DiagNullabilityKind;
/external/clang/lib/Basic/
DIdentifierTable.cpp650 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()
DDiagnostic.cpp31 case NullabilityKind::NonNull: in operator <<()
35 case NullabilityKind::Nullable: in operator <<()
39 case NullabilityKind::Unspecified: in operator <<()
/external/clang/lib/Parse/
DParseObjc.cpp395 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/
DASTContext.h1997 *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()
DType.h1940 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/
DSema.cpp355 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()
DSemaType.cpp2981 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 …]
DSemaObjCProperty.cpp2144 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2214 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2387 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()
DSemaCodeComplete.cpp2136 case NullabilityKind::NonNull: in formatObjCParamQualifiers()
2140 case NullabilityKind::Nullable: in formatObjCParamQualifiers()
2144 case NullabilityKind::Unspecified: in formatObjCParamQualifiers()
DSemaExprObjC.cpp1398 = static_cast<NullabilityKind>(newResultNullabilityIdx-1); in getMessageSendResultType()
DSemaChecking.cpp1187 if (*nullability == NullabilityKind::NonNull) in CheckNonNullExpr()
1270 return *nullability == NullabilityKind::NonNull; in isNonNullType()
/external/clang/include/clang/Sema/
DDeclSpec.h817 NullabilityKind getNullability() const { in getNullability()
821 return static_cast<NullabilityKind>(Nullability); in getNullability()
831 void setNullability(SourceLocation loc, NullabilityKind kind) { in setNullability()
DSema.h2985 bool checkNullabilityTypeSpecifier(QualType &type, NullabilityKind nullability,
9170 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability);
/external/clang/lib/AST/
DType.cpp3472 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()
DDeclPrinter.cpp1289 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
/external/clang/include/clang/Parse/
DParser.h312 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword()