Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp119 } else if (const auto *AT = dyn_cast<AttributedType>(T)) { in isGlobalConstString()
/llvm-project-15.0.7/clang/lib/AST/
H A DType.cpp532 template <> const AttributedType *Type::getAs() const { in getAs()
533 return getAsSugar<AttributedType>(this); in getAs()
1141 QualType VisitAttributedType(const AttributedType *T) { in SUGARED_TYPE_CLASS()
1778 while (const auto *AT = Cur->getAs<AttributedType>()) { in hasAttr()
1869 Type *VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
3580 bool AttributedType::isQualifier() const { in isQualifier()
3604 bool AttributedType::isMSTypeSpec() const { in isMSTypeSpec()
3617 bool AttributedType::isCallingConv() const { in isCallingConv()
4097 while (const auto *AT = Type->getAs<AttributedType>()) { in getNullability()
4237 AttributedType::getImmediateNullability() const { in getImmediateNullability()
[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.cpp927 cast<AttributedType>(T1)->getModifiedType(), in IsStructurallyEquivalent()
928 cast<AttributedType>(T2)->getModifiedType())) in IsStructurallyEquivalent()
931 Context, cast<AttributedType>(T1)->getEquivalentType(), in IsStructurallyEquivalent()
932 cast<AttributedType>(T2)->getEquivalentType())) in IsStructurallyEquivalent()
H A DTypePrinter.cpp299 const auto *AttrTy = cast<AttributedType>(UnderlyingType); in canPrefixQualifiers()
1623 void TypePrinter::printAttributedBefore(const AttributedType *T, in printAttributedBefore()
1667 void TypePrinter::printAttributedAfter(const AttributedType *T, in printAttributedAfter()
H A DDeclPrinter.cpp1245 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType()
1569 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl()
H A DODRHash.cpp821 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
H A DASTContext.cpp2391 cast<AttributedType>(T)->getEquivalentType().getTypePtr()); in getTypeInfoImpl()
3182 if (const auto *AT = dyn_cast<AttributedType>(Orig)) in getFunctionTypeWithExceptionSpec()
4708 AttributedType::Profile(id, attrKind, modifiedType, equivalentType); in getAttributedType()
4711 AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos); in getAttributedType()
4716 AttributedType(canon, attrKind, modifiedType, equivalentType); in getAttributedType()
6869 AttributedType::getNullabilityAttrKind(*Nullability), Result, Result); in getArrayDecayedType()
9398 if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) { in hasDirectOwnershipQualifier()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp103 const auto *AttrType = Type->getAs<AttributedType>(); in getNullabilityAnnotation()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DMemberwiseConstructor.cpp156 FieldAction VisitAttributedType(const AttributedType *T) { in considerField()
H A DObjCMemberwiseInitializer.cpp47 if (auto Kind = AttributedType::stripOuterNullability(T)) { in getTypeStr()
H A DExtractVariable.cpp125 AttributedType::stripOuterNullability(VarType); in ExtractionContext()
/llvm-project-15.0.7/clang/lib/Sema/
H A 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 …]
H A DSemaType.cpp184 using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
274 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) { in ReplaceAutoType()
276 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr()); in ReplaceAutoType()
287 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
7025 } else if (isa<AttributedType>(Ty)) { in FunctionTypeUnwrapper()
7026 T = cast<AttributedType>(Ty)->getEquivalentType(); in FunctionTypeUnwrapper()
7166 const AttributedType *AT = dyn_cast<AttributedType>(Type); in handleMSPointerTypeQualifierAttr()
7170 AT = dyn_cast<AttributedType>(Desugared); in handleMSPointerTypeQualifierAttr()
7817 const AttributedType *AT; in hasExplicitCallingConv()
7821 while ((AT = T->getAs<AttributedType>()) && in hasExplicitCallingConv()
[all …]
H A DSemaObjCProperty.cpp2482 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl()
2561 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTypeNodes.td93 def AttributedType : TypeNode<Type>, NeverCanonical;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DType.h1766 friend class AttributedType;
2547 template <> const AttributedType *Type::getAs() const;
4494 assert(isa<AttributedType>(UnderlyingTy) &&
4761 class AttributedType : public Type, public llvm::FoldingSetNode {
4771 AttributedType(QualType canon, attr::Kind attrKind, QualType modified,
7334 if (const auto *A = dyn_cast<AttributedType>(Ty))
7389 (void)AttributedType::stripOuterNullability(Adjusted);
7396 (void)AttributedType::stripOuterNullability(Decayed);
H A DASTNodeTraverser.h385 void VisitAttributedType(const AttributedType *T) { in VisitAttributedType()
H A DTypeProperties.td606 let Class = AttributedType in {
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGValue.h139 AttributedType, enumerator
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXType.cpp133 if (auto *ATT = T->getAs<AttributedType>()) { in MakeCXType()
1059 if (auto *ATT = T->getAs<AttributedType>()) in clang_Type_getModifiedType()
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp673 AttributedType::stripOuterNullability(Type)) { in getFragmentsForObjCProperty()

12