Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp105 if (isa<AttributedType>(ty.getTypePtr())) in isImplicitStrong()
H A DTransforms.cpp360 if (const AttributedType *AttrT = T->getAs<AttributedType>()) { in isGCOwnedNonObjC()
H A DTransProperties.cpp323 if (isa<AttributedType>(I->IvarD->getType())) in hasIvarWithExplicitARCOwnership()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp114 if (const auto *AT = dyn_cast<AttributedType>(T)) { in isGlobalConstString()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DType.cpp536 template <> const AttributedType *Type::getAs() const { in getAs()
537 return getAsSugar<AttributedType>(this); in getAs()
1145 QualType VisitAttributedType(const AttributedType *T) { in SUGARED_TYPE_CLASS()
1431 QualType VisitAttributedType(const AttributedType *attrType) { in VisitAttributedType()
1436 const auto *newAttrType = dyn_cast<AttributedType>(newType.getTypePtr()); in VisitAttributedType()
1802 while (const auto *AT = Cur->getAs<AttributedType>()) { in hasAttr()
1893 Type *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
3479 QualType Inner = cast<AttributedType>(getUnderlyingType())->getModifiedType(); in getModifiedType()
3606 bool AttributedType::isQualifier() const { in isQualifier()
3630 bool AttributedType::isMSTypeSpec() const { in isMSTypeSpec()
[all …]
H A DASTDiagnostic.cpp63 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in desugarForDiagnostic()
86 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in desugarForDiagnostic()
88 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in desugarForDiagnostic()
98 AttributedType::stripOuterNullability(SugarPT)) { in desugarForDiagnostic()
100 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in desugarForDiagnostic()
H A DASTStructuralEquivalence.cpp978 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
979 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
982 Context, cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
983 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
H A DTypePrinter.cpp295 const auto *AttrTy = cast<AttributedType>(UnderlyingType); in canPrefixQualifiers()
1624 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1668 void TypePrinter::printAttributedAfter(const AttributedType *T, in printAttributedAfter()
H A DDeclPrinter.cpp1249 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1573 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
H A DASTContext.cpp2402 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
3205 if (const auto *AT = dyn_cast<AttributedType>(Orig)) in getFunctionTypeWithExceptionSpec()
4772 AttributedType::Profile(id, attrKind, modifiedType, equivalentType); in getAttributedType()
4775 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
4780 AttributedType(canon, attrKind, modifiedType, equivalentType); in getAttributedType()
6945 AttributedType::getNullabilityAttrKind(*Nullability), Result, Result); in getArrayDecayedType()
9510 if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) { in hasDirectOwnershipQualifier()
12892 const auto *AX = cast<AttributedType>(X), *AY = cast<AttributedType>(Y); in getCommonSugarTypeNode()
12893 AttributedType::Kind Kind = AX->getAttrKind(); in getCommonSugarTypeNode()
H A DODRHash.cpp975 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp104 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaExprObjC.cpp545 AttributedType::getNullabilityAttrKind( in BuildObjCBoxedExpr()
599 AttributedType::getNullabilityAttrKind(*Nullability), BoxedType, in BuildObjCBoxedExpr()
1430 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1433 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1470 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1474 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1538 AttributedType::stripOuterNullability(T); in getMessageSendResultType()
1549 AttributedType::getNullabilityAttrKind(*Nullability), in getMessageSendResultType()
1601 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
1613 AttributedType::getNullabilityAttrKind(newNullability), in getMessageSendResultType()
[all …]
H A DSemaType.cpp187 using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
261 AttrsForTypes.push_back({cast<AttributedType>(T.getTypePtr()), A}); in getAttributedType()
277 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) { in ReplaceAutoType()
279 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr()); in ReplaceAutoType()
290 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
7120 } else if (isa<AttributedType>(Ty)) { in FunctionTypeUnwrapper()
7121 T = cast<AttributedType>(Ty)->getEquivalentType(); in FunctionTypeUnwrapper()
7175 return wrap(C, cast<AttributedType>(Old)->getEquivalentType(), I); in wrap()
7268 const AttributedType *AT = dyn_cast<AttributedType>(Desugared); in handleMSPointerTypeQualifierAttr()
7381 while (auto attributed = dyn_cast<AttributedType>(desugared.getTypePtr())) { in checkNullabilityTypeSpecifier()
[all …]
H A DSemaObjCProperty.cpp2479 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2558 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DTypeNodes.td93 def AttributedType : TypeNode<Type>, NeverCanonical;
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DType.h1776 friend class AttributedType;
2609 template <> const AttributedType *Type::getAs() const;
4586 assert(isa<AttributedType>(UnderlyingTy) &&
4876 class AttributedType : public Type, public llvm::FoldingSetNode {
4886 AttributedType(QualType canon, attr::Kind attrKind, QualType modified,
7429 if (const auto *A = dyn_cast<AttributedType>(Ty))
7484 (void)AttributedType::stripOuterNullability(Adjusted);
7491 (void)AttributedType::stripOuterNullability(Decayed);
H A DASTNodeTraverser.h385 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
H A DTypeProperties.td610 let Class = AttributedType in {
H A DRecursiveASTVisitor.h1107 DEF_TRAVERSE_TYPE(AttributedType,
1396 DEF_TRAVERSE_TYPELOC(AttributedType,
H A DTypeLoc.h862 AttributedType,
H A DASTContext.h238 mutable llvm::FoldingSet<AttributedType> AttributedTypes;
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGValue.h139 AttributedType, enumerator
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXType.cpp134 if (auto *ATT = T->getAs<AttributedType>()) { in MakeCXType()
1069 if (auto *ATT = T->getAs<AttributedType>()) in clang_Type_getModifiedType()
/openbsd-src/gnu/llvm/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp677 AttributedType::stripOuterNullability(Type)) { in getFragmentsForObjCProperty()

12