Lines Matching refs:CDecl
1159 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local
1160 if (!CDecl) { in ActOnCompatibilityAlias()
1169 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1799 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local
1811 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1814 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface()
1815 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1819 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface()
1858 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1862 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1867 ProcessDeclAttributeList(TUScope, CDecl, AttrList); in ActOnStartCategoryInterface()
1868 AddPragmaAttributes(TUScope, CDecl); in ActOnStartCategoryInterface()
1871 diagnoseUseOfProtocols(*this, CDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
1873 CDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartCategoryInterface()
1876 if (CDecl->IsClassExtension()) in ActOnStartCategoryInterface()
1881 CheckObjCDeclScope(CDecl); in ActOnStartCategoryInterface()
1882 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface()
1907 ObjCCategoryImplDecl *CDecl = in ActOnStartCategoryImplementation() local
1913 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1916 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1920 CurContext->addDecl(CDecl); in ActOnStartCategoryImplementation()
1936 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation()
1938 CatIDecl->setImplementation(CDecl); in ActOnStartCategoryImplementation()
1942 CDecl->getLocation()); in ActOnStartCategoryImplementation()
1946 CheckObjCDeclScope(CDecl); in ActOnStartCategoryImplementation()
1947 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryImplementation()
2134 for (const auto *CDecl : IDecl->visible_extensions()) { in CheckImplementationIvars() local
2136 CDecl->getIvarDecl(ImplIvar->getIdentifier())) { in CheckImplementationIvars()
2666 ObjCContainerDecl *CDecl, in CheckProtocolMethodDefs() argument
2668 ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(CDecl); in CheckProtocolMethodDefs()
2670 : dyn_cast<ObjCInterfaceDecl>(CDecl); in CheckProtocolMethodDefs()
2786 CDecl, ProtocolsExplictImpl); in CheckProtocolMethodDefs()
2797 ObjCContainerDecl* CDecl, in MatchAllMethodDeclarations() argument
2803 for (auto *I : CDecl->instance_methods()) { in MatchAllMethodDeclarations()
2815 assert(CDecl->getInstanceMethod(I->getSelector(), true/*AllowHidden*/) && in MatchAllMethodDeclarations()
2821 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2823 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2830 for (auto *I : CDecl->class_methods()) { in MatchAllMethodDeclarations()
2841 assert(CDecl->getClassMethod(I->getSelector(), true/*AllowHidden*/) && in MatchAllMethodDeclarations()
2847 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2849 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2854 if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl> (CDecl)) { in MatchAllMethodDeclarations()
2863 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in MatchAllMethodDeclarations()
2939 ObjCContainerDecl* CDecl, in ImplMethodsVsClassMethods() argument
2964 if (const ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in ImplMethodsVsClassMethods()
2968 DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, SynthesizeProperties); in ImplMethodsVsClassMethods()
2982 IMPDecl, CDecl, in ImplMethodsVsClassMethods()
2998 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) { in ImplMethodsVsClassMethods()
3002 } else if (ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(CDecl)) { in ImplMethodsVsClassMethods()
3008 IncompleteImpl, InsMap, ClsMap, CDecl, in ImplMethodsVsClassMethods()
3010 DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, in ImplMethodsVsClassMethods()
3964 if (ObjCContainerDecl *CDecl = dyn_cast<ObjCContainerDecl>(ClassDecl)) { in ActOnAtEnd() local
3965 if (CDecl->getIdentifier()) in ActOnAtEnd()
3969 for (auto *I : CDecl->properties()) in ActOnAtEnd()
3971 CDecl->setAtEndRange(AtEnd); in ActOnAtEnd()