Home
last modified time | relevance | path

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

/external/clang/include/clang/Basic/
DSpecifiers.h278 enum class NullabilityKind : uint8_t { enum
291 llvm::StringRef getNullabilitySpelling(NullabilityKind kind,
DDiagnostic.h1119 typedef std::pair<NullabilityKind, bool> DiagNullabilityKind;
/external/clang/lib/Basic/
DIdentifierTable.cpp651 StringRef clang::getNullabilitySpelling(NullabilityKind kind, in getNullabilitySpelling()
654 case NullabilityKind::NonNull: in getNullabilitySpelling()
657 case NullabilityKind::Nullable: in getNullabilitySpelling()
660 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()
817 NullabilityKind nullability, in diagnoseRedundantPropertyNullability()
943 NullabilityKind::NonNull, in ParseObjCPropertyAttribute()
946 DS.setNullability(Tok.getLocation(), NullabilityKind::NonNull); in ParseObjCPropertyAttribute()
950 NullabilityKind::Nullable, in ParseObjCPropertyAttribute()
953 DS.setNullability(Tok.getLocation(), NullabilityKind::Nullable); in ParseObjCPropertyAttribute()
957 NullabilityKind::Unspecified, in ParseObjCPropertyAttribute()
960 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified); in ParseObjCPropertyAttribute()
964 NullabilityKind::Unspecified, in ParseObjCPropertyAttribute()
967 DS.setNullability(Tok.getLocation(), NullabilityKind::Unspecified); in ParseObjCPropertyAttribute()
[all …]
/external/clang/include/clang/AST/
DASTContext.h2022 *SubTnullability == NullabilityKind::Unspecified || in hasSameNullabilityTypeQualifier()
2023 *SuperTnullability == NullabilityKind::Unspecified) in hasSameNullabilityTypeQualifier()
2029 return (*SuperTnullability == NullabilityKind::NonNull && in hasSameNullabilityTypeQualifier()
2030 *SubTnullability == NullabilityKind::Nullable); in hasSameNullabilityTypeQualifier()
2035 return (*SuperTnullability == NullabilityKind::Nullable && in hasSameNullabilityTypeQualifier()
2036 *SubTnullability == NullabilityKind::NonNull); in hasSameNullabilityTypeQualifier()
DType.h1969 Optional<NullabilityKind> getNullability(const ASTContext &context) const;
3861 llvm::Optional<NullabilityKind> getImmediateNullability() const;
3865 static Kind getNullabilityAttrKind(NullabilityKind kind) {
3867 case NullabilityKind::NonNull:
3870 case NullabilityKind::Nullable:
3873 case NullabilityKind::Unspecified:
3888 static Optional<NullabilityKind> stripOuterNullability(QualType &T);
/external/clang/lib/Sema/
DSema.cpp354 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion()
355 if (!ExprNullability || *ExprNullability != NullabilityKind::Nullable) in diagnoseNullableToNonnullConversion()
358 Optional<NullabilityKind> TypeNullability = DstType->getNullability(Context); in diagnoseNullableToNonnullConversion()
359 if (!TypeNullability || *TypeNullability != NullabilityKind::NonNull) in diagnoseNullableToNonnullConversion()
DSemaType.cpp3218 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword()
3220 case NullabilityKind::NonNull: in getNullabilityKeyword()
3225 case NullabilityKind::Nullable: in getNullabilityKeyword()
3230 case NullabilityKind::Unspecified: in getNullabilityKeyword()
3557 Optional<NullabilityKind> inferNullability; in GetFullTypeForDeclarator()
3647 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator()
3667 inferNullability = NullabilityKind::NonNull; in GetFullTypeForDeclarator()
3678 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator()
3699 inferNullability = NullabilityKind::Nullable; in GetFullTypeForDeclarator()
5812 NullabilityKind nullability, in checkNullabilityTypeSpecifier()
[all …]
DSemaObjCProperty.cpp2218 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2292 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2472 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()
DSemaCodeComplete.cpp2148 case NullabilityKind::NonNull: in formatObjCParamQualifiers()
2152 case NullabilityKind::Nullable: in formatObjCParamQualifiers()
2156 case NullabilityKind::Unspecified: in formatObjCParamQualifiers()
DSemaExprObjC.cpp1395 = static_cast<NullabilityKind>(newResultNullabilityIdx-1); in getMessageSendResultType()
DSemaChecking.cpp1901 if (*nullability == NullabilityKind::NonNull) in CheckNonNullExpr()
1984 return *nullability == NullabilityKind::NonNull; in isNonNullType()
/external/clang/lib/AST/
DType.cpp3480 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.cpp1307 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
/external/clang/include/clang/Sema/
DDeclSpec.h836 NullabilityKind getNullability() const { in getNullability()
840 return static_cast<NullabilityKind>(Nullability); in getNullability()
850 void setNullability(SourceLocation loc, NullabilityKind kind) { in setNullability()
DSema.h3059 bool checkNullabilityTypeSpecifier(QualType &type, NullabilityKind nullability,
9545 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability);
/external/clang/include/clang/Parse/
DParser.h318 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword()