Home
last modified time | relevance | path

Searched refs:AttributedType (Results 1 – 25 of 31) sorted by relevance

12

/external/clang/lib/AST/
DTypePrinter.cpp1130 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1133 if (T->getAttrKind() == AttributedType::attr_objc_gc || in printAttributedBefore()
1134 T->getAttrKind() == AttributedType::attr_objc_ownership) in printAttributedBefore()
1137 if (T->getAttrKind() == AttributedType::attr_objc_kindof) in printAttributedBefore()
1145 case AttributedType::attr_ptr32: OS << " __ptr32"; break; in printAttributedBefore()
1146 case AttributedType::attr_ptr64: OS << " __ptr64"; break; in printAttributedBefore()
1147 case AttributedType::attr_sptr: OS << " __sptr"; break; in printAttributedBefore()
1148 case AttributedType::attr_uptr: OS << " __uptr"; break; in printAttributedBefore()
1154 if (T->getAttrKind() == AttributedType::attr_nonnull || in printAttributedBefore()
1155 T->getAttrKind() == AttributedType::attr_nullable || in printAttributedBefore()
[all …]
DType.cpp334 template <> const AttributedType *Type::getAs() const { in getAs()
335 return getAsSugar<AttributedType>(this); in getAs()
522 if (auto attributed = dyn_cast<AttributedType>(cur)) { in isObjCInertUnsafeUnretainedType()
524 AttributedType::attr_objc_inert_unsafe_unretained) in isObjCInertUnsafeUnretainedType()
926 QualType VisitAttributedType(const AttributedType *T) { in TRIVIAL_TYPE_CLASS()
1580 AutoType *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
2969 bool AttributedType::isQualifier() const { in isQualifier()
2974 case AttributedType::attr_address_space: in isQualifier()
2975 case AttributedType::attr_objc_gc: in isQualifier()
2976 case AttributedType::attr_objc_ownership: in isQualifier()
[all …]
DTypeLoc.cpp370 if (attributedLoc.getAttrKind() == AttributedType::attr_nullable || in findNullabilityLoc()
371 attributedLoc.getAttrKind() == AttributedType::attr_nonnull || in findNullabilityLoc()
372 attributedLoc.getAttrKind() == AttributedType::attr_null_unspecified) in findNullabilityLoc()
DASTDiagnostic.cpp52 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in Desugar()
75 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in Desugar()
77 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in Desugar()
87 AttributedType::stripOuterNullability(SugarPT)) { in Desugar()
89 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in Desugar()
DDeclPrinter.cpp997 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1288 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
DASTImporter.cpp70 QualType VisitAttributedType(const AttributedType *T);
636 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
637 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
640 cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
641 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
1771 QualType ASTNodeImporter::VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
DASTContext.cpp1821 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
2263 if (auto *AT = dyn_cast<AttributedType>(Orig)) in getFunctionTypeWithExceptionSpec()
3216 QualType ASTContext::getAttributedType(AttributedType::Kind attrKind, in getAttributedType()
3220 AttributedType::Profile(id, attrKind, modifiedType, equivalentType); in getAttributedType()
3223 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
3228 AttributedType(canon, attrKind, modifiedType, equivalentType); in getAttributedType()
DASTDumper.cpp363 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/external/clang/lib/Sema/
DSemaType.cpp3560 AttributedType::getNullabilityAttrKind(*inferNullability), T, T); in GetFullTypeForDeclarator()
4431 static AttributeList::Kind getAttrListKind(AttributedType::Kind kind) { in getAttrListKind()
4433 case AttributedType::attr_address_space: in getAttrListKind()
4435 case AttributedType::attr_regparm: in getAttrListKind()
4437 case AttributedType::attr_vector_size: in getAttrListKind()
4439 case AttributedType::attr_neon_vector_type: in getAttrListKind()
4441 case AttributedType::attr_neon_polyvector_type: in getAttrListKind()
4443 case AttributedType::attr_objc_gc: in getAttrListKind()
4445 case AttributedType::attr_objc_ownership: in getAttrListKind()
4446 case AttributedType::attr_objc_inert_unsafe_unretained: in getAttrListKind()
[all …]
DSemaExprObjC.cpp1256 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1259 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1296 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1300 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1388 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
1400 AttributedType::getNullabilityAttrKind(newNullability), in getMessageSendResultType()
3997 else if (const AttributedType *AT = dyn_cast<AttributedType>(DT)) in CheckObjCARCConversion()
DSemaObjCProperty.cpp2143 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2145 resultTy = Context.getAttributedType(AttributedType::attr_nonnull, in ProcessPropertyDecl()
2213 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
2215 paramTy = Context.getAttributedType(AttributedType::attr_nullable, in ProcessPropertyDecl()
DSemaDeclObjC.cpp4081 AttributedType::getNullabilityAttrKind(*prevNullability), in mergeTypeNullabilityForRedecl()
4160 (void)AttributedType::stripOuterNullability(bareResultType); in ActOnMethodDeclaration()
DSemaCodeComplete.cpp2134 if (auto nullability = AttributedType::stripOuterNullability(Type)) { in formatObjCParamQualifiers()
7085 AttributedType::stripOuterNullability(ResTy); in CodeCompleteObjCMethodDecl()
7120 AttributedType::stripOuterNullability(ParamType); in CodeCompleteObjCMethodDecl()
/external/clang/lib/ARCMigrate/
DTransforms.cpp366 if (const AttributedType *AttrT = T->getAs<AttributedType>()) { in isGCOwnedNonObjC()
367 if (AttrT->getAttrKind() == AttributedType::attr_objc_ownership) in isGCOwnedNonObjC()
DTransBlockObjCVariable.cpp106 if (isa<AttributedType>(ty.getTypePtr())) in isImplicitStrong()
DTransProperties.cpp322 if (isa<AttributedType>(I->IvarD->getType())) in hasIvarWithExplicitARCOwnership()
DTransGCAttrs.cpp84 if (TL.getAttrKind() != AttributedType::attr_objc_ownership) in handleAttr()
/external/clang/include/clang/AST/
DTypeLoc.h726 AttributedType,
729 AttributedType::Kind getAttrKind() const { in getAttrKind()
734 return (getAttrKind() >= AttributedType::FirstExprOperandKind && in hasAttrExprOperand()
735 getAttrKind() <= AttributedType::LastExprOperandKind); in hasAttrExprOperand()
739 return (getAttrKind() >= AttributedType::FirstEnumOperandKind && in hasAttrEnumOperand()
740 getAttrKind() <= AttributedType::LastEnumOperandKind); in hasAttrEnumOperand()
DASTContext.h132 llvm::FoldingSet<AttributedType> AttributedTypes;
1211 QualType getAttributedType(AttributedType::Kind attrKind,
DType.h1428 friend class AttributedType;
1993 template <> const AttributedType *Type::getAs() const;
3597 class AttributedType : public Type, public llvm::FoldingSetNode {
3649 AttributedType(QualType canon, Kind attrKind,
DRecursiveASTVisitor.h942 DEF_TRAVERSE_TYPE(AttributedType,
1166 DEF_TRAVERSE_TYPELOC(AttributedType,
/external/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp320 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
323 if (AttrType->getAttrKind() == AttributedType::attr_nullable) in getNullabilityAnnotation()
325 else if (AttrType->getAttrKind() == AttributedType::attr_nonnull) in getNullabilityAnnotation()
/external/clang/lib/CodeGen/
DCGValue.h134 AttributedType, enumerator
DCodeGenFunction.cpp113 if (Source) *Source = AlignmentSource::AttributedType; in getNaturalTypeAlignment()
/external/clang/tools/libclang/
DCXType.cpp106 if (auto *ATT = T->getAs<AttributedType>()) { in MakeCXType()

12