Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp114 if (const auto *AT = dyn_cast<AttributedType>(T)) { in isGlobalConstString()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DType.cpp558 template <> const AttributedType *Type::getAs() const { in getAs()
559 return getAsSugar<AttributedType>(this); in getAs()
1167 QualType VisitAttributedType(const AttributedType *T) { in SUGARED_TYPE_CLASS()
1838 while (const auto *AT = Cur->getAs<AttributedType>()) { in hasAttr()
1929 Type *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
3872 bool AttributedType::isQualifier() const { in isQualifier()
3896 bool AttributedType::isMSTypeSpec() const { in isMSTypeSpec()
3909 bool AttributedType::isWebAssemblyFuncrefSpec() const { in isWebAssemblyFuncrefSpec()
3913 bool AttributedType::isCallingConv() const { in isCallingConv()
4457 while (const auto *AT = Type->getAs<AttributedType>()) { in getNullability()
[all …]
H A DASTDiagnostic.cpp64 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { in desugarForDiagnostic()
87 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in desugarForDiagnostic()
89 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in desugarForDiagnostic()
99 AttributedType::stripOuterNullability(SugarPT)) { in desugarForDiagnostic()
101 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in desugarForDiagnostic()
H A DASTStructuralEquivalence.cpp1062 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
1063 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
1066 Context, cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
1067 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
H A DTypePrinter.cpp295 const auto *AttrTy = cast<AttributedType>(UnderlyingType); in canPrefixQualifiers()
1700 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1747 void TypePrinter::printAttributedAfter(const AttributedType *T, in printAttributedAfter()
H A DDeclPrinter.cpp1388 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1712 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
H A DASTContext.cpp2347 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
3166 if (const auto *AT = dyn_cast<AttributedType>(Orig)) in getFunctionTypeWithExceptionSpec()
4751 AttributedType::Profile(id, attrKind, modifiedType, equivalentType); in getAttributedType()
4754 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
4758 type = new (*this, alignof(AttributedType)) in getAttributedType()
4759 AttributedType(canon, attrKind, modifiedType, equivalentType); in getAttributedType()
6952 AttributedType::getNullabilityAttrKind(*Nullability), Result, Result); in getArrayDecayedType()
9617 if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) { in hasDirectOwnershipQualifier()
13042 const auto *AX = cast<AttributedType>(X), *AY = cast<AttributedType>(Y); in getCommonSugarTypeNode()
13043 AttributedType::Kind Kind = AX->getAttrKind(); in getCommonSugarTypeNode()
H A DODRHash.cpp961 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp104 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp545 AttributedType::getNullabilityAttrKind( in BuildObjCBoxedExpr()
599 AttributedType::getNullabilityAttrKind(*Nullability), BoxedType, in BuildObjCBoxedExpr()
1431 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType()
1434 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1471 (void)AttributedType::stripOuterNullability(type); in getBaseMessageSendResultType()
1475 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1539 AttributedType::stripOuterNullability(T); in getMessageSendResultType()
1550 AttributedType::getNullabilityAttrKind(*Nullability), in getMessageSendResultType()
1602 if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) { in getMessageSendResultType()
1614 AttributedType::getNullabilityAttrKind(newNullability), in getMessageSendResultType()
[all …]
H A DSemaType.cpp289 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) { in ReplaceAutoType()
291 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr()); in ReplaceAutoType()
302 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
7279 } else if (isa<AttributedType>(Ty)) { in FunctionTypeUnwrapper()
7280 T = cast<AttributedType>(Ty)->getEquivalentType(); in FunctionTypeUnwrapper()
7427 const AttributedType *AT = dyn_cast<AttributedType>(Desugared); in handleMSPointerTypeQualifierAttr()
7502 const auto *AT = dyn_cast<AttributedType>(QT); in HandleWebAssemblyFuncrefAttr()
7505 AT = dyn_cast<AttributedType>(AT->getModifiedType()); in HandleWebAssemblyFuncrefAttr()
7527 auto Attributed = dyn_cast<AttributedType>(Type.getTypePtr()); in rebuildAttributedTypeWithoutNullability()
8286 const AttributedType *AT; in hasExplicitCallingConv()
[all …]
H A DSemaObjCProperty.cpp2478 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2554 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
H A DSemaDeclObjC.cpp4573 AttributedType::getNullabilityAttrKind(*prevNullability), in mergeTypeNullabilityForRedecl()
4748 (void)AttributedType::stripOuterNullability(bareResultType); in ActOnMethodDeclaration()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td93 def AttributedType : TypeNode<Type>, NeverCanonical;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DType.h1849 friend class AttributedType;
2720 template <> const AttributedType *Type::getAs() const;
4792 assert(isa<AttributedType>(UnderlyingTy) &&
5077 class AttributedType : public Type, public llvm::FoldingSetNode {
5087 AttributedType(QualType canon, attr::Kind attrKind, QualType modified,
7611 if (const auto *A = dyn_cast<AttributedType>(Ty))
7666 (void)AttributedType::stripOuterNullability(Adjusted);
7673 (void)AttributedType::stripOuterNullability(Decayed);
H A DASTNodeTraverser.h391 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
H A DTypeProperties.td614 let Class = AttributedType in {
H A DRecursiveASTVisitor.h1101 DEF_TRAVERSE_TYPE(AttributedType,
1387 DEF_TRAVERSE_TYPELOC(AttributedType,
H A DTypeLoc.h868 AttributedType,
H A DASTContext.h243 mutable llvm::FoldingSet<AttributedType> AttributedTypes;
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGValue.h139 AttributedType, enumerator
/freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp1343 AttributedType::stripOuterNullability(Type)) { in getFragmentsForObjCProperty()

12