Lines Matching refs:ObjCInterfaceDecl

60     ObjCInterfaceDecl *resultClass = result->getInterface();  in checkInitMethod()
74 const ObjCInterfaceDecl *receiverClass = nullptr; in checkInitMethod()
124 ObjCInterfaceDecl *CurrentClass in CheckObjCMethodOverride()
125 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
365 if (ObjCInterfaceDecl *IC = MDecl->getClassInterface()) { in ActOnStartOfObjCMethodDef()
375 if (ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(ContDeclOfMethodDecl)) in ActOnStartOfObjCMethodDef()
379 if (ObjCInterfaceDecl *OID = CD->getClassInterface()) in ActOnStartOfObjCMethodDef()
407 if (const ObjCInterfaceDecl *SuperClass = IC->getSuperClass()) { in ActOnStartOfObjCMethodDef()
437 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC()
441 ObjCInterfaceDecl *ID = candidate.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ValidateCandidate()
446 ObjCInterfaceDecl *CurrentIDecl;
467 ObjCInterfaceDecl *IDecl, in ActOnSuperClassOfClassInterface()
488 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface()
497 ObjCInterfaceDecl *SuperClassDecl = in ActOnSuperClassOfClassInterface()
498 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface()
515 SuperClassDecl = dyn_cast<ObjCInterfaceDecl>(IDecl); in ActOnSuperClassOfClassInterface()
787 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency()
788 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency()
915 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface()
921 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface()
980 ObjCInterfaceDecl *IDecl in ActOnStartClassInterface()
981 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface()
985 if (ObjCInterfaceDecl *Def = PrevIDecl->getDefinition()) { in ActOnStartClassInterface()
1077 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias()
1294 if (candidate.getCorrectionDeclAs<ObjCInterfaceDecl>()) in ValidateCandidate()
1338 ObjCInterfaceDecl *baseClass = nullptr; in actOnObjCTypeArgsOrProtocolQualifiers()
1387 if (isa<ObjCInterfaceDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1444 typedef llvm::PointerUnion<TypeDecl *, ObjCInterfaceDecl *> TypeOrClassDecl; in actOnObjCTypeArgsOrProtocolQualifiers()
1461 if (auto objcClass = dyn_cast<ObjCInterfaceDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1484 type = Context.getObjCInterfaceType(typeDecl.get<ObjCInterfaceDecl *>()); in actOnObjCTypeArgsOrProtocolQualifiers()
1623 if (auto objcClass = corrected.getCorrectionDeclAs<ObjCInterfaceDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
1659 ObjCInterfaceDecl *ID) { in DiagnoseClassExtensionDupMethods()
1722 ObjCInterfaceDecl *IDecl = getObjCInterfaceDecl(ClassName, ClassLoc, true); in ActOnStartCategoryInterface()
1808 ObjCInterfaceDecl *IDecl = getObjCInterfaceDecl(ClassName, ClassLoc, true); in ActOnStartCategoryImplementation()
1876 ObjCInterfaceDecl *IDecl = nullptr; in ActOnStartClassImplementation()
1881 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1884 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
1895 if (Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>()) { in ActOnStartClassImplementation()
1908 ObjCInterfaceDecl *SDecl = nullptr; in ActOnStartClassImplementation()
1913 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1918 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
1940 IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtClassImplLoc, in ActOnStartClassImplementation()
2022 ObjCInterfaceDecl* IDecl = ImpDecl->getClassInterface(); in CheckImplementationIvars()
2075 ObjCInterfaceDecl::ivar_iterator in CheckImplementationIvars()
2576 static void findProtocolsWithExplicitImpls(const ObjCInterfaceDecl *Super, in findProtocolsWithExplicitImpls()
2598 ObjCInterfaceDecl *IDecl = C ? C->getClassInterface() in CheckProtocolMethodDefs()
2599 : dyn_cast<ObjCInterfaceDecl>(CDecl); in CheckProtocolMethodDefs()
2602 ObjCInterfaceDecl *Super = IDecl->getSuperClass(); in CheckProtocolMethodDefs()
2603 ObjCInterfaceDecl *NSIDecl = nullptr; in CheckProtocolMethodDefs()
2792 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in MatchAllMethodDeclarations()
2834 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
2837 ObjCInterfaceDecl *SuperIDecl = IDecl->getSuperClass(); in CheckCategoryVsClassMethodMatches()
2893 if (const ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in ImplMethodsVsClassMethods()
2927 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in ImplMethodsVsClassMethods()
2958 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
2985 ObjCInterfaceDecl *PrevIDecl in ActOnForwardClassDeclaration()
2986 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
3016 } else if (ObjCInterfaceDecl *Def = PrevIDecl->getDefinition()) { in ActOnForwardClassDeclaration()
3028 ObjCInterfaceDecl *IDecl in ActOnForwardClassDeclaration()
3029 = ObjCInterfaceDecl::Create(Context, CurContext, AtClassLoc, in ActOnForwardClassDeclaration()
3192 ObjCInterfaceDecl *MethodInterface = Method->getClassInterface(); in isMethodContextSameForKindofLookup()
3193 ObjCInterfaceDecl *MethodInListInterface = in isMethodContextSameForKindofLookup()
3375 if (ObjCInterfaceDecl *MethodInterface = Method->getClassInterface()) { in FilterMethodsByTypeBound()
3644 void Sema::DiagnoseDuplicateIvars(ObjCInterfaceDecl *ID, in DiagnoseDuplicateIvars()
3645 ObjCInterfaceDecl *SID) { in DiagnoseDuplicateIvars()
3709 isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl) in ActOnAtEnd()
3771 if (isa<ObjCInterfaceDecl>(ClassDecl)) { in ActOnAtEnd()
3779 ObjCInterfaceDecl *CCPrimary = C->getClassInterface(); in ActOnAtEnd()
3794 if (ObjCInterfaceDecl* IDecl = IC->getClassInterface()) { in ActOnAtEnd()
3843 ObjCInterfaceDecl *NSObjectDecl = dyn_cast_or_null<ObjCInterfaceDecl>(IF); in ActOnAtEnd()
3870 if (ObjCInterfaceDecl* IDecl = CatImplClass->getClassInterface()) { in ActOnAtEnd()
3913 ObjCInterfaceDecl *CurrentClass) { in CheckRelatedResultTypeCompatibility()
3927 if (ObjCInterfaceDecl *ResultClass in CheckRelatedResultTypeCompatibility()
3984 if (ObjCInterfaceDecl *Interface = Category->getClassInterface()) in OverrideSearch()
4034 if (ObjCInterfaceDecl *Interface = category->getClassInterface()) in searchFrom()
4038 } else if (ObjCInterfaceDecl *Interface = impl->getClassInterface()) { in searchFrom()
4043 void searchFrom(ObjCInterfaceDecl *iface) { in searchFrom()
4053 if (ObjCInterfaceDecl *super = iface->getSuperClass()) in searchFrom()
4063 if (ObjCInterfaceDecl *Interface = impl->getClassInterface()) in searchFrom()
4097 ObjCInterfaceDecl *CurrentClass, in CheckObjCMethodOverrides()
4164 if (isa<ObjCInterfaceDecl>(ObjCMethod->getDeclContext()) || in CheckObjCMethodOverrides()
4170 isa<ObjCInterfaceDecl>(overridden->getDeclContext()) && in CheckObjCMethodOverrides()
4413 if (ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface()) { in ActOnMethodDeclaration()
4442 ObjCInterfaceDecl *CurrentClass = dyn_cast<ObjCInterfaceDecl>(ClassDecl); in ActOnMethodDeclaration()
4525 ObjCInterfaceDecl *Class = getObjCInterfaceDecl(ClassName, DeclStart); in ActOnDefs()
4661 void Sema::CollectIvarsToConstructOrDestruct(ObjCInterfaceDecl *OI, in CollectIvarsToConstructOrDestruct()
4699 const ObjCInterfaceDecl *IDecl = Method->getClassInterface(); in GetIvarBackingPropertyAccessor()
4712 IV = const_cast<ObjCInterfaceDecl *>(IDecl)->lookupInstanceVariable( in GetIvarBackingPropertyAccessor()