Home
last modified time | relevance | path

Searched refs:ObjCObjectPointerType (Results 1 – 25 of 76) sorted by relevance

1234

/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp49 const ObjCObjectPointerType *)
62 const ObjCObjectPointerType *getBetterObjCType(const Expr *CastE,
95 void reportGenericsBug(const ObjCObjectPointerType *From,
96 const ObjCObjectPointerType *To, ExplodedNode *N,
115 if (const auto *PointerType = dyn_cast<ObjCObjectPointerType>(Type)) { in isObjCClassType()
160 MessageExpr->getSuperType()->getAs<ObjCObjectPointerType>()) in inferReceiverType()
221 dyn_cast<ObjCObjectPointerType>(InferredType)) { in inferReceiverType()
433 const ObjCObjectPointerType *
440 const ObjCObjectPointerType *NewTy = in getBetterObjCType()
441 CastE->getType()->getAs<ObjCObjectPointerType>(); in getBetterObjCType()
[all …]
H A DDynamicTypeChecker.cpp139 static bool hasDefinition(const ObjCObjectPointerType *ObjPtr) { in hasDefinition()
167 const auto *DynObjCType = DynType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
168 const auto *StaticObjCType = StaticType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
H A DNSErrorChecker.cpp298 const ObjCObjectPointerType* PT = in IsNSError()
299 PPT->getPointeeType()->getAs<ObjCObjectPointerType>(); in IsNSError()
H A DNonnullGlobalConstantsChecker.cpp141 if (auto *T = dyn_cast<ObjCObjectPointerType>(Ty)) { in isNonnullType()
H A DIvarInvalidationChecker.cpp282 const ObjCObjectPointerType *IvTy = IvQTy->getAs<ObjCObjectPointerType>(); in trackIvar()
/src/contrib/llvm-project/clang/lib/Analysis/
H A DCocoaConventions.cpp69 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>(); in isCocoaObjectRef()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h588 using qual_iterator = ObjCObjectPointerType::qual_iterator;
597 struct CanProxyAdaptor<ObjCObjectPointerType>
598 : public CanProxyBase<ObjCObjectPointerType> {
607 using qual_iterator = ObjCObjectPointerType::qual_iterator;
H A DASTContext.h243 mutable llvm::FoldingSet<ObjCObjectPointerType> ObjCObjectPointerTypes;
2967 bool ObjCQualifiedIdTypesAreCompatible(const ObjCObjectPointerType *LHS,
2968 const ObjCObjectPointerType *RHS,
2971 bool ObjCQualifiedClassTypesAreCompatible(const ObjCObjectPointerType *LHS,
2972 const ObjCObjectPointerType *RHS);
2975 bool canAssignObjCInterfaces(const ObjCObjectPointerType *LHSOPT,
2976 const ObjCObjectPointerType *RHSOPT);
2980 const ObjCObjectPointerType *LHSOPT,
2981 const ObjCObjectPointerType *RHSOPT,
2984 QualType areCommonBaseCompatible(const ObjCObjectPointerType *LHSOPT,
[all …]
H A DBuiltinTypes.def230 // type is a typedef of an ObjCObjectPointerType to an
236 // 'Class' type is a typedef of an ObjCObjectPointerType to an
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp557 const ObjCObjectPointerType *PT = in LookupMethodInReceiverType()
558 PRE->getBase()->getType()->castAs<ObjCObjectPointerType>(); in LookupMethodInReceiverType()
576 if (const ObjCObjectPointerType *PT = in LookupMethodInReceiverType()
577 PRE->getSuperReceiverType()->getAs<ObjCObjectPointerType>()) in LookupMethodInReceiverType()
851 if (const ObjCObjectPointerType *ptr in buildRValueOperation()
852 = propType->getAs<ObjCObjectPointerType>()) { in buildRValueOperation()
1078 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter()
1079 BaseT->getAs<ObjCObjectPointerType>()) { in findAtIndexGetter()
1177 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter()
1178 BaseT->getAs<ObjCObjectPointerType>()) { in findAtIndexSetter()
H A DSemaObjCProperty.cpp494 PIDecl->getType()->getAs<ObjCObjectPointerType>() && in HandlePropertyInClassExtension()
528 if (!isa<ObjCObjectPointerType>(PrimaryClassPropertyT) || in HandlePropertyInClassExtension()
529 !isa<ObjCObjectPointerType>(ClassExtPropertyT) || in HandlePropertyInClassExtension()
578 if (const ObjCObjectPointerType *ObjPtrTy = in CreatePropertyDecl()
579 T->getAs<ObjCObjectPointerType>()) { in CreatePropertyDecl()
1241 if (const ObjCObjectPointerType *ObjT = in ActOnPropertyImplDecl()
1242 PropertyIvarType->getAs<ObjCObjectPointerType>()) { in ActOnPropertyImplDecl()
1345 if (isa<ObjCObjectPointerType>(PropertyIvarType) in ActOnPropertyImplDecl()
1346 && isa<ObjCObjectPointerType>(IvarType)) in ActOnPropertyImplDecl()
1348 PropertyIvarType->castAs<ObjCObjectPointerType>(), in ActOnPropertyImplDecl()
[all …]
H A DSemaExprObjC.cpp1784 if (auto *ObjPT = ReceiverType->getAs<ObjCObjectPointerType>()) { in CheckMessageArgumentTypes()
1977 Selector Sel, const ObjCObjectPointerType *OPT, bool Instance) { in LookupMethodInQualifiedType()
1990 const ObjCObjectPointerType *OPT, Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr()
2148 if (const ObjCObjectPointerType * OBJPT = in HandleExprPropertyRefExpr()
2195 return HandleExprPropertyRefExpr(T->castAs<ObjCObjectPointerType>(), in ActOnClassPropertyRefExpr()
2519 const auto *OPT = ReceiverType->getAs<ObjCObjectPointerType>(); in checkFoundationAPI()
2983 const ObjCObjectPointerType *QClassTy in BuildInstanceMessage()
3050 if (const ObjCObjectPointerType *QIdTy in BuildInstanceMessage()
3058 } else if (const ObjCObjectPointerType *OCIType in BuildInstanceMessage()
3194 if (const ObjCObjectPointerType * in BuildInstanceMessage()
[all …]
H A DSemaObjC.cpp143 const ObjCObjectPointerType *pointerType = in CheckObjCForCollectionOperand()
144 collection->getType()->getAs<ObjCObjectPointerType>(); in CheckObjCForCollectionOperand()
608 if (const auto *typeArgObjC = typeArg->getAs<ObjCObjectPointerType>()) { in applyObjCTypeArgs()
619 const auto *boundObjC = bound->castAs<ObjCObjectPointerType>(); in applyObjCTypeArgs()
1490 const auto *PT = T->getAs<ObjCObjectPointerType>(); in isNSStringType()
1529 if (!VD->getType()->getAs<ObjCObjectPointerType>()) { in checkIBOutletCommon()
1535 if (!PD->getType()->getAs<ObjCObjectPointerType>()) { in checkIBOutletCommon()
2334 ICE->getSubExpr()->getType()->getAs<ObjCObjectPointerType>()) in checkCollectionLiteralElement()
2340 if (ElementType->getAs<ObjCObjectPointerType>() && in checkCollectionLiteralElement()
2361 const auto *TargetObjCPtr = TargetType->getAs<ObjCObjectPointerType>(); in checkArrayLiteral()
[all …]
H A DSemaExprMember.cpp525 static Decl *FindGetterSetterNameDecl(const ObjCObjectPointerType *QIdTy, in FindGetterSetterNameDecl()
1235 const ObjCObjectPointerType *opty in ShouldTryAgainWithRedefinitionType()
1236 = base.get()->getType()->getAs<ObjCObjectPointerType>(); in ShouldTryAgainWithRedefinitionType()
1252 opty = redef->getAs<ObjCObjectPointerType>(); in ShouldTryAgainWithRedefinitionType()
1311 else if (const ObjCObjectPointerType *Ptr = in LookupMemberExpr()
1312 BaseType->getAs<ObjCObjectPointerType>()) in LookupMemberExpr()
1533 const ObjCObjectPointerType *OPT; in LookupMemberExpr()
1534 if (!IsArrow && (OPT = BaseType->getAs<ObjCObjectPointerType>())) { in LookupMemberExpr()
H A DSemaDeclObjC.cpp57 method->getReturnType()->castAs<ObjCObjectPointerType>()->getObjectType(); in checkInitMethod()
83 receiverClass = receiverTypeIfCall->castAs<ObjCObjectPointerType>() in checkInitMethod()
2311 const ObjCObjectPointerType *A, in isObjCTypeSubstitutable()
2312 const ObjCObjectPointerType *B, in isObjCTypeSubstitutable()
2405 if (const ObjCObjectPointerType *ImplPtrTy = in CheckMethodOverrideReturn()
2406 MethodImpl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2407 if (const ObjCObjectPointerType *IfacePtrTy = in CheckMethodOverrideReturn()
2408 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2487 if (const ObjCObjectPointerType *ImplPtrTy = in CheckMethodOverrideParam()
2488 ImplTy->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideParam()
[all …]
H A DSemaSwift.cpp111 if (const auto *OPT = Pointee->getAs<ObjCObjectPointerType>()) in isErrorParameter()
250 if (const auto *ObjCPtrTy = Param->getAs<ObjCObjectPointerType>()) { in checkSwiftAsyncErrorBlock()
H A DSemaOverload.cpp2695 if (isa<ObjCObjectPointerType>(ToType)) in BuildSimilarlyQualifiedPointerType()
2704 if (isa<ObjCObjectPointerType>(ToType)) in BuildSimilarlyQualifiedPointerType()
2777 FromType->castAs<ObjCObjectPointerType>(), ToPointeeType, ToType, in IsPointerConversion()
2881 const ObjCObjectPointerType* ToObjCPtr = in isObjCPointerConversion()
2882 ToType->getAs<ObjCObjectPointerType>(); in isObjCPointerConversion()
2883 const ObjCObjectPointerType *FromObjCPtr = in isObjCPointerConversion()
2884 FromType->getAs<ObjCObjectPointerType>(); in isObjCPointerConversion()
2966 if (FromPointeeType->getAs<ObjCObjectPointerType>() && in isObjCPointerConversion()
2967 ToPointeeType->getAs<ObjCObjectPointerType>() && in isObjCPointerConversion()
3362 } else if (const ObjCObjectPointerType *ToPtrType = in CheckPointerConversion()
[all …]
/src/contrib/llvm-project/clang/lib/AST/
H A DType.cpp708 if (const auto *OPT = getAs<ObjCObjectPointerType>()) in getPointeeType()
764 const auto *OPT = getAs<ObjCObjectPointerType>(); in isObjCIdOrObjectKindOfType()
787 const auto *OPT = getAs<ObjCObjectPointerType>(); in isObjCClassOrClassKindOfType()
910 const ObjCObjectPointerType *ObjCObjectPointerType::stripObjCKindOfTypeAndQuals( in stripObjCKindOfTypeAndQuals()
916 return ctx.getObjCObjectPointerType(obj)->castAs<ObjCObjectPointerType>(); in stripObjCKindOfTypeAndQuals()
1314 QualType VisitObjCObjectPointerType(const ObjCObjectPointerType *T) { in TRIVIAL_TYPE_CLASS()
1383 typeParam->getUnderlyingType()->castAs<ObjCObjectPointerType>(); in VisitObjCTypeParamType()
1526 const ObjCObjectPointerType *ptrType = in VisitAttributedType()
1527 newEquivType->getAs<ObjCObjectPointerType>(); in VisitAttributedType()
1675 if (const auto *objectPointerType = getAs<ObjCObjectPointerType>()) { in getObjCSubstitutions()
[all …]
H A DExprObjC.cpp317 if (const ObjCObjectPointerType *Ptr = T->getAs<ObjCObjectPointerType>()) in getReceiverInterface()
H A DASTContext.cpp5791 dyn_cast<ObjCObjectPointerType>(type.getTypePtr())) { in applyObjCProtocolQualifiers()
5831 const auto *objPtr = type->castAs<ObjCObjectPointerType>(); in applyObjCProtocolQualifiers()
5839 const auto *objPtr = type->castAs<ObjCObjectPointerType>(); in applyObjCProtocolQualifiers()
5899 if (const auto *OPT = QT->getAs<ObjCObjectPointerType>()) { in ObjCObjectAdoptsQTypeProtocols()
5917 const auto *OPT = QT->getAs<ObjCObjectPointerType>(); in QIdProtocolsAdoptObjCObjectProtocols()
5961 ObjCObjectPointerType::Profile(ID, ObjectT); in getObjCObjectPointerType()
5964 if (ObjCObjectPointerType *QT = in getObjCObjectPointerType()
5979 Allocate(sizeof(ObjCObjectPointerType), alignof(ObjCObjectPointerType)); in getObjCObjectPointerType()
5981 new (Mem) ObjCObjectPointerType(Canonical, ObjectT); in getObjCObjectPointerType()
6576 const auto *T1OPType = T1->getAs<ObjCObjectPointerType>(); in UnwrapSimilarTypes()
[all …]
/src/contrib/llvm-project/clang/include/clang/Sema/
H A DExternalSemaSource.h215 const ObjCObjectPointerType *OPT) { in CorrectTypo()
H A DMultiplexExternalSemaSource.h348 const ObjCObjectPointerType *OPT) override;
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp273 if (!isa<ObjCObjectPointerType>(T)) { in generateDiagnosticsForCallLike()
276 const ObjCObjectPointerType *PT = cast<ObjCObjectPointerType>(T); in generateDiagnosticsForCallLike()
/src/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.cpp55 if (const ObjCObjectPointerType *ObjT = T->getAs<ObjCObjectPointerType>()) { in canApplyWeak()
/src/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h166 .getCanonicalType()->getAs<ObjCObjectPointerType>()) in VisitSymbolicRegion()

1234