Home
last modified time | relevance | path

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

123

/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()
/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()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCheckerHelpers.h25 class AttributedType; variable
/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/llvm-project/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp105 if (isa<AttributedType>(ty.getTypePtr())) in isImplicitStrong()
DTransforms.cpp362 if (const AttributedType *AttrT = T->getAs<AttributedType>()) { in isGCOwnedNonObjC()
DTransProperties.cpp323 if (isa<AttributedType>(I->IvarD->getType())) in hasIvarWithExplicitARCOwnership()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNonnullGlobalConstantsChecker.cpp119 } else if (const auto *AT = dyn_cast<AttributedType>(T)) { in isGlobalConstString()
/external/llvm-project/clang/lib/AST/
DType.cpp532 template <> const AttributedType *Type::getAs() const { in getAs()
533 return getAsSugar<AttributedType>(this); in getAs()
1135 QualType VisitAttributedType(const AttributedType *T) { in SUGARED_TYPE_CLASS()
1420 QualType VisitAttributedType(const AttributedType *attrType) { in VisitAttributedType()
1425 const auto *newAttrType = dyn_cast<AttributedType>(newType.getTypePtr()); in VisitAttributedType()
1772 while (const auto *AT = Cur->getAs<AttributedType>()) { in hasAttr()
1860 Type *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
3387 QualType Inner = cast<AttributedType>(getUnderlyingType())->getModifiedType(); in getModifiedType()
3504 bool AttributedType::isQualifier() const { in isQualifier()
3528 bool AttributedType::isMSTypeSpec() const { in isMSTypeSpec()
[all …]
DASTDiagnostic.cpp56 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in Desugar()
79 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in Desugar()
81 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in Desugar()
91 AttributedType::stripOuterNullability(SugarPT)) { in Desugar()
93 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in Desugar()
DASTStructuralEquivalence.cpp907 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
908 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
911 Context, cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
912 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp103 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
/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()
/external/llvm-project/clang/lib/Sema/
DSemaExprObjC.cpp544 AttributedType::getNullabilityAttrKind( in BuildObjCBoxedExpr()
598 AttributedType::getNullabilityAttrKind(*Nullability), BoxedType, in BuildObjCBoxedExpr()
1432 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1435 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1472 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1476 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1540 AttributedType::stripOuterNullability(T); in getMessageSendResultType()
1551 AttributedType::getNullabilityAttrKind(*Nullability), in getMessageSendResultType()
1603 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
1615 AttributedType::getNullabilityAttrKind(newNullability), in getMessageSendResultType()
[all …]
DSemaType.cpp186 using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
262 AttrsForTypes.push_back({cast<AttributedType>(T.getTypePtr()), A}); in getAttributedType()
272 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) { in ReplaceAutoType()
274 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr()); in ReplaceAutoType()
285 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
6804 } else if (isa<AttributedType>(Ty)) { in FunctionTypeUnwrapper()
6805 T = cast<AttributedType>(Ty)->getEquivalentType(); in FunctionTypeUnwrapper()
6859 return wrap(C, cast<AttributedType>(Old)->getEquivalentType(), I); in wrap()
6945 const AttributedType *AT = dyn_cast<AttributedType>(Type); in handleMSPointerTypeQualifierAttr()
6949 AT = dyn_cast<AttributedType>(Desugared); in handleMSPointerTypeQualifierAttr()
[all …]
/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/llvm-project/clang/include/clang/Basic/
DTypeNodes.td92 def AttributedType : TypeNode<Type>, NeverCanonical;
/external/llvm-project/clang/include/clang/AST/
DType.h1685 friend class AttributedType;
2463 template <> const AttributedType *Type::getAs() const;
4391 assert(isa<AttributedType>(UnderlyingTy) &&
4658 class AttributedType : public Type, public llvm::FoldingSetNode {
4668 AttributedType(QualType canon, attr::Kind attrKind, QualType modified,
7151 if (const auto *A = dyn_cast<AttributedType>(Ty))
7204 (void)AttributedType::stripOuterNullability(Adjusted);
7211 (void)AttributedType::stripOuterNullability(Decayed);

123