Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp49 const ObjCObjectPointerType *)
66 const ObjCObjectPointerType *getBetterObjCType(const Expr *CastE,
92 void reportGenericsBug(const ObjCObjectPointerType *From,
93 const ObjCObjectPointerType *To, ExplodedNode *N,
111 if (const auto *PointerType = dyn_cast<ObjCObjectPointerType>(Type)) { in isObjCClassType()
156 MessageExpr->getSuperType()->getAs<ObjCObjectPointerType>()) in inferReceiverType()
217 dyn_cast<ObjCObjectPointerType>(InferredType)) { in inferReceiverType()
429 const ObjCObjectPointerType *
436 const ObjCObjectPointerType *NewTy = in getBetterObjCType()
437 CastE->getType()->getAs<ObjCObjectPointerType>(); in getBetterObjCType()
[all …]
H A DDynamicTypeChecker.cpp137 static bool hasDefinition(const ObjCObjectPointerType *ObjPtr) { in hasDefinition()
165 const auto *DynObjCType = DynType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
166 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.cpp140 if (auto *T = dyn_cast<ObjCObjectPointerType>(Ty)) { in isNonnullType()
H A DIvarInvalidationChecker.cpp281 const ObjCObjectPointerType *IvTy = IvQTy->getAs<ObjCObjectPointerType>(); in trackIvar()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCocoaConventions.cpp68 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>(); in isCocoaObjectRef()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h592 using qual_iterator = ObjCObjectPointerType::qual_iterator;
601 struct CanProxyAdaptor<ObjCObjectPointerType>
602 : public CanProxyBase<ObjCObjectPointerType> {
611 using qual_iterator = ObjCObjectPointerType::qual_iterator;
H A DASTContext.h246 mutable llvm::FoldingSet<ObjCObjectPointerType> ObjCObjectPointerTypes;
3171 bool ObjCQualifiedIdTypesAreCompatible(const ObjCObjectPointerType *LHS,
3172 const ObjCObjectPointerType *RHS,
3175 bool ObjCQualifiedClassTypesAreCompatible(const ObjCObjectPointerType *LHS,
3176 const ObjCObjectPointerType *RHS);
3179 bool canAssignObjCInterfaces(const ObjCObjectPointerType *LHSOPT,
3180 const ObjCObjectPointerType *RHSOPT);
3184 const ObjCObjectPointerType *LHSOPT,
3185 const ObjCObjectPointerType *RHSOPT,
3188 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
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp555 const ObjCObjectPointerType *PT = in LookupMethodInReceiverType()
556 PRE->getBase()->getType()->castAs<ObjCObjectPointerType>(); in LookupMethodInReceiverType()
574 if (const ObjCObjectPointerType *PT = in LookupMethodInReceiverType()
575 PRE->getSuperReceiverType()->getAs<ObjCObjectPointerType>()) in LookupMethodInReceiverType()
849 if (const ObjCObjectPointerType *ptr in buildRValueOperation()
850 = propType->getAs<ObjCObjectPointerType>()) { in buildRValueOperation()
1076 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter()
1077 BaseT->getAs<ObjCObjectPointerType>()) { in findAtIndexGetter()
1175 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter()
1176 BaseT->getAs<ObjCObjectPointerType>()) { in findAtIndexSetter()
H A DSemaObjCProperty.cpp495 PIDecl->getType()->getAs<ObjCObjectPointerType>() && in HandlePropertyInClassExtension()
529 if (!isa<ObjCObjectPointerType>(PrimaryClassPropertyT) || in HandlePropertyInClassExtension()
530 !isa<ObjCObjectPointerType>(ClassExtPropertyT) || in HandlePropertyInClassExtension()
579 if (const ObjCObjectPointerType *ObjPtrTy = in CreatePropertyDecl()
580 T->getAs<ObjCObjectPointerType>()) { in CreatePropertyDecl()
1242 if (const ObjCObjectPointerType *ObjT = in ActOnPropertyImplDecl()
1243 PropertyIvarType->getAs<ObjCObjectPointerType>()) { in ActOnPropertyImplDecl()
1355 if (isa<ObjCObjectPointerType>(PropertyIvarType) in ActOnPropertyImplDecl()
1356 && isa<ObjCObjectPointerType>(IvarType)) in ActOnPropertyImplDecl()
1358 PropertyIvarType->castAs<ObjCObjectPointerType>(), in ActOnPropertyImplDecl()
[all …]
H A DSemaExprObjC.cpp1771 if (auto *ObjPT = ReceiverType->getAs<ObjCObjectPointerType>()) { in CheckMessageArgumentTypes()
1964 Selector Sel, const ObjCObjectPointerType *OPT, bool Instance) { in LookupMethodInQualifiedType()
1977 const ObjCObjectPointerType *OPT, Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr()
2137 if (const ObjCObjectPointerType * OBJPT = in HandleExprPropertyRefExpr()
2184 return HandleExprPropertyRefExpr(T->castAs<ObjCObjectPointerType>(), in ActOnClassPropertyRefExpr()
2508 const auto *OPT = ReceiverType->getAs<ObjCObjectPointerType>(); in checkFoundationAPI()
2972 const ObjCObjectPointerType *QClassTy in BuildInstanceMessage()
3039 if (const ObjCObjectPointerType *QIdTy in BuildInstanceMessage()
3047 } else if (const ObjCObjectPointerType *OCIType in BuildInstanceMessage()
3183 if (const ObjCObjectPointerType * in BuildInstanceMessage()
[all …]
H A DSemaObjC.cpp139 const ObjCObjectPointerType *pointerType = in CheckObjCForCollectionOperand()
140 collection->getType()->getAs<ObjCObjectPointerType>(); in CheckObjCForCollectionOperand()
604 if (const auto *typeArgObjC = typeArg->getAs<ObjCObjectPointerType>()) { in applyObjCTypeArgs()
615 const auto *boundObjC = bound->castAs<ObjCObjectPointerType>(); in applyObjCTypeArgs()
1486 const auto *PT = T->getAs<ObjCObjectPointerType>(); in isNSStringType()
1525 if (!VD->getType()->getAs<ObjCObjectPointerType>()) { in checkIBOutletCommon()
1531 if (!PD->getType()->getAs<ObjCObjectPointerType>()) { in checkIBOutletCommon()
2333 ICE->getSubExpr()->getType()->getAs<ObjCObjectPointerType>()) in checkCollectionLiteralElement()
2339 if (ElementType->getAs<ObjCObjectPointerType>() && in checkCollectionLiteralElement()
2360 const auto *TargetObjCPtr = TargetType->getAs<ObjCObjectPointerType>(); in checkArrayLiteral()
[all …]
H A DSemaExprMember.cpp526 static Decl *FindGetterSetterNameDecl(const ObjCObjectPointerType *QIdTy, in FindGetterSetterNameDecl()
1171 const ObjCObjectPointerType *opty in ShouldTryAgainWithRedefinitionType()
1172 = base.get()->getType()->getAs<ObjCObjectPointerType>(); in ShouldTryAgainWithRedefinitionType()
1188 opty = redef->getAs<ObjCObjectPointerType>(); in ShouldTryAgainWithRedefinitionType()
1247 else if (const ObjCObjectPointerType *Ptr = in LookupMemberExpr()
1248 BaseType->getAs<ObjCObjectPointerType>()) in LookupMemberExpr()
1468 const ObjCObjectPointerType *OPT; in LookupMemberExpr()
1469 if (!IsArrow && (OPT = BaseType->getAs<ObjCObjectPointerType>())) { in LookupMemberExpr()
H A DSemaDeclObjC.cpp56 method->getReturnType()->castAs<ObjCObjectPointerType>()->getObjectType(); in checkInitMethod()
82 receiverClass = receiverTypeIfCall->castAs<ObjCObjectPointerType>() in checkInitMethod()
2319 const ObjCObjectPointerType *A, in isObjCTypeSubstitutable()
2320 const ObjCObjectPointerType *B, in isObjCTypeSubstitutable()
2413 if (const ObjCObjectPointerType *ImplPtrTy = in CheckMethodOverrideReturn()
2414 MethodImpl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2415 if (const ObjCObjectPointerType *IfacePtrTy = in CheckMethodOverrideReturn()
2416 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2495 if (const ObjCObjectPointerType *ImplPtrTy = in CheckMethodOverrideParam()
2496 ImplTy->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideParam()
[all …]
H A DSemaSwift.cpp125 if (const auto *OPT = Pointee->getAs<ObjCObjectPointerType>()) in isErrorParameter()
264 if (const auto *ObjCPtrTy = Param->getAs<ObjCObjectPointerType>()) { in checkSwiftAsyncErrorBlock()
H A DSemaOverload.cpp2872 if (isa<ObjCObjectPointerType>(ToType)) in BuildSimilarlyQualifiedPointerType()
2881 if (isa<ObjCObjectPointerType>(ToType)) in BuildSimilarlyQualifiedPointerType()
2954 FromType->castAs<ObjCObjectPointerType>(), ToPointeeType, ToType, in IsPointerConversion()
3058 const ObjCObjectPointerType* ToObjCPtr = in isObjCPointerConversion()
3059 ToType->getAs<ObjCObjectPointerType>(); in isObjCPointerConversion()
3060 const ObjCObjectPointerType *FromObjCPtr = in isObjCPointerConversion()
3061 FromType->getAs<ObjCObjectPointerType>(); in isObjCPointerConversion()
3143 if (FromPointeeType->getAs<ObjCObjectPointerType>() && in isObjCPointerConversion()
3144 ToPointeeType->getAs<ObjCObjectPointerType>() && in isObjCPointerConversion()
3549 } else if (const ObjCObjectPointerType *ToPtrType = in CheckPointerConversion()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp757 if (const auto *OPT = getAs<ObjCObjectPointerType>()) in getPointeeType()
813 const auto *OPT = getAs<ObjCObjectPointerType>(); in isObjCIdOrObjectKindOfType()
837 const auto *OPT = getAs<ObjCObjectPointerType>(); in isObjCClassOrClassKindOfType()
960 const ObjCObjectPointerType *ObjCObjectPointerType::stripObjCKindOfTypeAndQuals( in stripObjCKindOfTypeAndQuals()
966 return ctx.getObjCObjectPointerType(obj)->castAs<ObjCObjectPointerType>(); in stripObjCKindOfTypeAndQuals()
1361 QualType VisitObjCObjectPointerType(const ObjCObjectPointerType *T) { in TRIVIAL_TYPE_CLASS()
1428 typeParam->getUnderlyingType()->castAs<ObjCObjectPointerType>(); in VisitObjCTypeParamType()
1571 const ObjCObjectPointerType *ptrType = in VisitAttributedType()
1572 newEquivType->getAs<ObjCObjectPointerType>(); in VisitAttributedType()
1721 if (const auto *objectPointerType = getAs<ObjCObjectPointerType>()) { in getObjCSubstitutions()
[all …]
H A DExprObjC.cpp312 if (const ObjCObjectPointerType *Ptr = T->getAs<ObjCObjectPointerType>()) in getReceiverInterface()
H A DASTContext.cpp6210 dyn_cast<ObjCObjectPointerType>(type.getTypePtr())) { in applyObjCProtocolQualifiers()
6250 const auto *objPtr = type->castAs<ObjCObjectPointerType>(); in applyObjCProtocolQualifiers()
6258 const auto *objPtr = type->castAs<ObjCObjectPointerType>(); in applyObjCProtocolQualifiers()
6318 if (const auto *OPT = QT->getAs<ObjCObjectPointerType>()) { in ObjCObjectAdoptsQTypeProtocols()
6336 const auto *OPT = QT->getAs<ObjCObjectPointerType>(); in QIdProtocolsAdoptObjCObjectProtocols()
6380 ObjCObjectPointerType::Profile(ID, ObjectT); in getObjCObjectPointerType()
6383 if (ObjCObjectPointerType *QT = in getObjCObjectPointerType()
6398 Allocate(sizeof(ObjCObjectPointerType), alignof(ObjCObjectPointerType)); in getObjCObjectPointerType()
6400 new (Mem) ObjCObjectPointerType(Canonical, ObjectT); in getObjCObjectPointerType()
7025 const auto *T1OPType = T1->getAs<ObjCObjectPointerType>(); in UnwrapSimilarTypes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRawPtrRefMemberChecker.cpp316 bool IsPtr = isa<PointerType>(T) || isa<ObjCObjectPointerType>(T); in printPointer()
377 if (!isa<ObjCObjectPointerType>(T) && T->getAs<TypedefType>()) { in printPointer()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DExternalSemaSource.h215 const ObjCObjectPointerType *OPT) { in CorrectTypo()
H A DMultiplexExternalSemaSource.h357 const ObjCObjectPointerType *OPT) override;
/freebsd/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()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h177 .getCanonicalType()->getAs<ObjCObjectPointerType>()) in VisitSymbolicRegion()

1234