Home
last modified time | relevance | path

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

12

/external/clang/lib/AST/
DTypePrinter.cpp1168 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1171 if (T->getAttrKind() == AttributedType::attr_objc_gc || in printAttributedBefore()
1172 T->getAttrKind() == AttributedType::attr_objc_ownership) in printAttributedBefore()
1175 if (T->getAttrKind() == AttributedType::attr_objc_kindof) in printAttributedBefore()
1183 case AttributedType::attr_ptr32: OS << " __ptr32"; break; in printAttributedBefore()
1184 case AttributedType::attr_ptr64: OS << " __ptr64"; break; in printAttributedBefore()
1185 case AttributedType::attr_sptr: OS << " __sptr"; break; in printAttributedBefore()
1186 case AttributedType::attr_uptr: OS << " __uptr"; break; in printAttributedBefore()
1192 if (T->getAttrKind() == AttributedType::attr_nonnull || in printAttributedBefore()
1193 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()
1586 AutoType *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
2968 bool AttributedType::isQualifier() const { in isQualifier()
2973 case AttributedType::attr_address_space: in isQualifier()
2974 case AttributedType::attr_objc_gc: in isQualifier()
2975 case AttributedType::attr_objc_ownership: in isQualifier()
[all …]
DTypeLoc.cpp362 if (attributedLoc.getAttrKind() == AttributedType::attr_nullable || in findNullabilityLoc()
363 attributedLoc.getAttrKind() == AttributedType::attr_nonnull || in findNullabilityLoc()
364 attributedLoc.getAttrKind() == AttributedType::attr_null_unspecified) in findNullabilityLoc()
DASTDiagnostic.cpp53 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in Desugar()
76 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in Desugar()
78 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in Desugar()
88 AttributedType::stripOuterNullability(SugarPT)) { in Desugar()
90 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in Desugar()
DDeclPrinter.cpp1015 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1306 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
DASTImporter.cpp71 QualType VisitAttributedType(const AttributedType *T);
691 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
692 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
695 cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
696 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
1876 QualType ASTNodeImporter::VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
DASTContext.cpp1812 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
2272 if (auto *AT = dyn_cast<AttributedType>(Orig)) in getFunctionTypeWithExceptionSpec()
3259 QualType ASTContext::getAttributedType(AttributedType::Kind attrKind, in getAttributedType()
3263 AttributedType::Profile(id, attrKind, modifiedType, equivalentType); in getAttributedType()
3266 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
3271 AttributedType(canon, attrKind, modifiedType, equivalentType); in getAttributedType()
DASTDumper.cpp365 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/external/clang/lib/Sema/
DSemaType.cpp3801 AttributedType::getNullabilityAttrKind(*inferNullability), T, T); in GetFullTypeForDeclarator()
4714 static AttributeList::Kind getAttrListKind(AttributedType::Kind kind) { in getAttrListKind()
4716 case AttributedType::attr_address_space: in getAttrListKind()
4718 case AttributedType::attr_regparm: in getAttrListKind()
4720 case AttributedType::attr_vector_size: in getAttrListKind()
4722 case AttributedType::attr_neon_vector_type: in getAttrListKind()
4724 case AttributedType::attr_neon_polyvector_type: in getAttrListKind()
4726 case AttributedType::attr_objc_gc: in getAttrListKind()
4728 case AttributedType::attr_objc_ownership: in getAttrListKind()
4729 case AttributedType::attr_objc_inert_unsafe_unretained: in getAttrListKind()
[all …]
DSemaExprObjC.cpp1253 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1256 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1293 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1297 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1385 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
1397 AttributedType::getNullabilityAttrKind(newNullability), in getMessageSendResultType()
4041 else if (const AttributedType *AT = dyn_cast<AttributedType>(DT)) in CheckObjCARCConversion()
DSemaObjCProperty.cpp2217 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2219 resultTy = Context.getAttributedType(AttributedType::attr_nonnull, in ProcessPropertyDecl()
2291 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
2293 paramTy = Context.getAttributedType(AttributedType::attr_nullable, in ProcessPropertyDecl()
DSemaDeclObjC.cpp4230 AttributedType::getNullabilityAttrKind(*prevNullability), in mergeTypeNullabilityForRedecl()
4309 (void)AttributedType::stripOuterNullability(bareResultType); in ActOnMethodDeclaration()
DSemaCodeComplete.cpp2146 if (auto nullability = AttributedType::stripOuterNullability(Type)) { in formatObjCParamQualifiers()
7105 AttributedType::stripOuterNullability(ResTy); in CodeCompleteObjCMethodDecl()
7140 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.h136 llvm::FoldingSet<AttributedType> AttributedTypes;
1224 QualType getAttributedType(AttributedType::Kind attrKind,
DType.h1460 friend class AttributedType;
2022 template <> const AttributedType *Type::getAs() const;
3764 class AttributedType : public Type, public llvm::FoldingSetNode {
3819 AttributedType(QualType canon, Kind attrKind,
DRecursiveASTVisitor.h1015 DEF_TRAVERSE_TYPE(AttributedType,
1241 DEF_TRAVERSE_TYPELOC(AttributedType,
/external/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp349 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
352 if (AttrType->getAttrKind() == AttributedType::attr_nullable) in getNullabilityAnnotation()
354 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.cpp108 if (auto *ATT = T->getAs<AttributedType>()) { in MakeCXType()

12