Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp638 template <> const AttributedType *Type::getAs() const { in getAs()
639 return getAsSugar<AttributedType>(this); in getAs()
1278 QualType VisitAttributedType(const AttributedType *T) { in SUGARED_TYPE_CLASS()
1560 QualType VisitAttributedType(const AttributedType *attrType) { in VisitAttributedType()
1565 const auto *newAttrType = dyn_cast<AttributedType>(newType.getTypePtr()); in VisitAttributedType()
1956 while (const auto *AT = Cur->getAs<AttributedType>()) { in hasAttr()
2044 Type *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
4069 QualType Inner = cast<AttributedType>(getUnderlyingType())->getModifiedType(); in getModifiedType()
4276 AttributedType::AttributedType(QualType canon, const Attr *attr, in AttributedType() function in AttributedType
4278 : AttributedType(canon, attr->getKind(), attr, modified, equivalent) {} in AttributedType()
[all …]
H A DASTDiagnostic.cpp66 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in desugarForDiagnostic()
89 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in desugarForDiagnostic()
100 AttributedType::stripOuterNullability(SugarPT)) { in desugarForDiagnostic()
H A DQualTypeNames.cpp421 if (auto *AT = dyn_cast<AttributedType>(QT.getTypePtr())) { in getFullyQualifiedType()
H A DASTStructuralEquivalence.cpp1147 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
1148 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
1151 Context, cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
1152 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
H A DTypePrinter.cpp298 const auto *AttrTy = cast<AttributedType>(UnderlyingType); in canPrefixQualifiers()
1852 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1910 void TypePrinter::printAttributedAfter(const AttributedType *T, in printAttributedAfter()
H A DDeclPrinter.cpp1381 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1710 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
H A DASTContext.cpp2552 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
3728 const auto *AT = cast<AttributedType>(Orig); in adjustType()
5485 AttributedType::Profile(id, attrKind, modifiedType, equivalentType, attr); in getAttributedType()
5488 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
5494 type = new (*this, alignof(AttributedType)) in getAttributedType()
5495 AttributedType(canon, attrKind, attr, modifiedType, equivalentType); in getAttributedType()
10640 if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) { in hasDirectOwnershipQualifier()
14361 const auto *AX = cast<AttributedType>(X), *AY = cast<AttributedType>(Y); in getCommonSugarTypeNode()
14362 AttributedType::Kind Kind = AX->getAttrKind(); in getCommonSugarTypeNode()
H A DODRHash.cpp1006 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp113 if (const auto *AT = dyn_cast<AttributedType>(T)) { in isGlobalConstString()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp105 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAPINotes.cpp633 QualType AttributedType = in ProcessAPINotes() local
637 AttributedTypeLoc TyLoc = TLB.push<AttributedTypeLoc>(AttributedType); in ProcessAPINotes()
639 Method->setType(AttributedType); in ProcessAPINotes()
640 Method->setTypeSourceInfo(TLB.getTypeSourceInfo(S.Context, AttributedType)); in ProcessAPINotes()
H A DSemaType.cpp212 using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
291 AttrsForTypes.push_back({cast<AttributedType>(T.getTypePtr()), A}); in getAttributedType()
307 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) { in ReplaceAutoType()
309 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr()); in ReplaceAutoType()
320 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
6889 } else if (isa<AttributedType>(Ty)) { in FunctionTypeUnwrapper()
6890 T = cast<AttributedType>(Ty)->getEquivalentType(); in FunctionTypeUnwrapper()
6944 return wrap(C, cast<AttributedType>(Old)->getEquivalentType(), I); in wrap()
7038 const AttributedType *AT = dyn_cast<AttributedType>(Desugared); in handleMSPointerTypeQualifierAttr()
7113 const auto *AT = dyn_cast<AttributedType>(QT); in HandleWebAssemblyFuncrefAttr()
[all …]
H A DSemaExprObjC.cpp1439 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1477 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1541 AttributedType::stripOuterNullability(T); in getMessageSendResultType()
1603 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
4420 else if (const AttributedType *AT = dyn_cast<AttributedType>(DT)) in CheckObjCConversion()
H A DSemaObjCProperty.cpp2470 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2548 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenValue.h118 AttributedType, enumerator
H A DCIRGenModule.cpp149 *baseInfo = LValueBaseInfo(AlignmentSource::AttributedType); in getNaturalTypeAlignment()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DTemplateArgumentHasher.cpp274 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td94 def AttributedType : TypeNode<Type>, NeverCanonical;
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h2087 friend class AttributedType;
3068 template <> const AttributedType *Type::getAs() const;
5858 assert(isa<AttributedType>(UnderlyingTy) &&
6188 class AttributedType : public Type, public llvm::FoldingSetNode {
6200 AttributedType(QualType canon, attr::Kind attrKind, QualType modified,
6202 : AttributedType(canon, attrKind, nullptr, modified, equivalent) {}
6204 AttributedType(QualType canon, const Attr *attr, QualType modified,
6208 AttributedType(QualType canon, attr::Kind attrKind, const Attr *attr,
8968 if (const auto *A = dyn_cast<AttributedType>(Ty))
9025 (void)AttributedType::stripOuterNullability(Adjusted);
[all …]
H A DASTNodeTraverser.h440 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
H A DTypeProperties.td653 let Class = AttributedType in {
H A DRecursiveASTVisitor.h1142 DEF_TRAVERSE_TYPE(AttributedType,
1456 DEF_TRAVERSE_TYPELOC(AttributedType,
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp278 if (const AttributedType *AT = dyn_cast<AttributedType>(T)) { in getFragmentsForType()
1526 AttributedType::stripOuterNullability(Type)) { in getFragmentsForObjCProperty()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGValue.h150 AttributedType,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp474 if (auto *AttrType = dyn_cast<AttributedType>(Type)) { in isPtrConversion()

12