Lines Matching refs:CDecl
1077 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local
1078 if (!CDecl) { in ActOnCompatibilityAlias()
1087 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1721 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local
1733 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1736 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface()
1737 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1741 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface()
1780 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1784 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1787 diagnoseUseOfProtocols(*this, CDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
1789 CDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartCategoryInterface()
1792 if (CDecl->IsClassExtension()) in ActOnStartCategoryInterface()
1797 CheckObjCDeclScope(CDecl); in ActOnStartCategoryInterface()
1798 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface()
1823 ObjCCategoryImplDecl *CDecl = in ActOnStartCategoryImplementation() local
1829 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1832 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1836 CurContext->addDecl(CDecl); in ActOnStartCategoryImplementation()
1856 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1858 CatIDecl->setImplementation(CDecl); in ActOnStartCategoryImplementation()
1863 CDecl->getLocation(), 2); in ActOnStartCategoryImplementation()
1867 CheckObjCDeclScope(CDecl); in ActOnStartCategoryImplementation()
1868 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryImplementation()
2056 for (const auto *CDecl : IDecl->visible_extensions()) { in CheckImplementationIvars() local
2058 CDecl->getIvarDecl(ImplIvar->getIdentifier())) { in CheckImplementationIvars()
2595 ObjCContainerDecl *CDecl, in CheckProtocolMethodDefs() argument
2597 ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(CDecl); in CheckProtocolMethodDefs()
2599 : dyn_cast<ObjCInterfaceDecl>(CDecl); in CheckProtocolMethodDefs()
2715 CDecl, ProtocolsExplictImpl); in CheckProtocolMethodDefs()
2726 ObjCContainerDecl* CDecl, in MatchAllMethodDeclarations() argument
2732 for (auto *I : CDecl->instance_methods()) { in MatchAllMethodDeclarations()
2744 assert(CDecl->getInstanceMethod(I->getSelector()) && in MatchAllMethodDeclarations()
2750 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2752 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2759 for (auto *I : CDecl->class_methods()) { in MatchAllMethodDeclarations()
2770 assert(CDecl->getClassMethod(I->getSelector()) && in MatchAllMethodDeclarations()
2776 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2778 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2783 if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl> (CDecl)) { in MatchAllMethodDeclarations()
2792 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in MatchAllMethodDeclarations()
2868 ObjCContainerDecl* CDecl, in ImplMethodsVsClassMethods() argument
2893 if (const ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in ImplMethodsVsClassMethods()
2897 DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, SynthesizeProperties); in ImplMethodsVsClassMethods()
2911 IMPDecl, CDecl, in ImplMethodsVsClassMethods()
2927 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in ImplMethodsVsClassMethods()
2931 } else if (ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(CDecl)) { in ImplMethodsVsClassMethods()
2937 IncompleteImpl, InsMap, ClsMap, CDecl, in ImplMethodsVsClassMethods()
2939 DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, in ImplMethodsVsClassMethods()
3783 if (ObjCContainerDecl *CDecl = dyn_cast<ObjCContainerDecl>(ClassDecl)) { in ActOnAtEnd() local
3784 if (CDecl->getIdentifier()) in ActOnAtEnd()
3788 for (auto *I : CDecl->properties()) in ActOnAtEnd()
3790 CDecl->setAtEndRange(AtEnd); in ActOnAtEnd()