Lines Matching refs:ObjCInterfaceDecl
59 ObjCInterfaceDecl *resultClass = result->getInterface();
73 const ObjCInterfaceDecl *receiverClass = 0;
127 ObjCInterfaceDecl *CurrentClass
128 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
329 if (ObjCInterfaceDecl *IC = MDecl->getClassInterface()) {
355 // If an ObjCInterfaceDecl* is given to the constructor, then the validation
360 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl)
364 ObjCInterfaceDecl *ID = candidate.getCorrectionDeclAs<ObjCInterfaceDecl>();
369 ObjCInterfaceDecl *CurrentIDecl;
387 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
393 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
394 ObjCInterfaceDecl *IDecl
395 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName,
400 if (ObjCInterfaceDecl *Def = PrevIDecl->getDefinition()) {
429 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
442 ObjCInterfaceDecl *SuperClassDecl =
443 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
457 SuperClassDecl = dyn_cast<ObjCInterfaceDecl>(IDecl);
536 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU);
690 ObjCInterfaceDecl *ID) {
695 for (ObjCInterfaceDecl::method_iterator i = ID->meth_begin(),
756 ObjCInterfaceDecl *IDecl = getObjCInterfaceDecl(ClassName, ClassLoc, true);
823 ObjCInterfaceDecl *IDecl = getObjCInterfaceDecl(ClassName, ClassLoc, true);
882 ObjCInterfaceDecl* IDecl = 0;
887 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
890 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
905 IDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
918 ObjCInterfaceDecl* SDecl = 0;
923 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
928 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
950 IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtClassImplLoc,
1019 ObjCInterfaceDecl* IDecl = ImpDecl->getClassInterface();
1063 ObjCInterfaceDecl::ivar_iterator
1494 ObjCInterfaceDecl *IDecl = C ? C->getClassInterface()
1495 : dyn_cast<ObjCInterfaceDecl>(CDecl);
1498 ObjCInterfaceDecl *Super = IDecl->getSuperClass();
1499 ObjCInterfaceDecl *NSIDecl = 0;
1598 for (ObjCInterfaceDecl::instmeth_iterator I = CDecl->instmeth_begin(),
1629 for (ObjCInterfaceDecl::classmeth_iterator
1653 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) {
1664 for (ObjCInterfaceDecl::all_protocol_iterator
1704 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface();
1728 if (const ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl))
1757 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl> (CDecl)) {
1758 for (ObjCInterfaceDecl::all_protocol_iterator
1781 if (ObjCInterfaceDecl *ID = C->getClassInterface())
1812 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1838 ObjCInterfaceDecl *PrevIDecl
1839 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1840 ObjCInterfaceDecl *IDecl
1841 = ObjCInterfaceDecl::Create(Context, CurContext, AtClassLoc,
2149 ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(ClassDecl);
2152 while (ObjCInterfaceDecl *SD = ID->getSuperClass()) {
2185 void Sema::DiagnoseDuplicateIvars(ObjCInterfaceDecl *ID,
2186 ObjCInterfaceDecl *SID) {
2187 for (ObjCInterfaceDecl::ivar_iterator IVI = ID->ivar_begin(),
2240 isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl)
2309 if (ObjCInterfaceDecl *I = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) {
2322 ObjCInterfaceDecl *CCPrimary = C->getClassInterface();
2339 if (ObjCInterfaceDecl* IDecl = IC->getClassInterface()) {
2389 ObjCInterfaceDecl *NSObjectDecl = dyn_cast_or_null<ObjCInterfaceDecl>(IF);
2416 if (ObjCInterfaceDecl* IDecl = CatImplClass->getClassInterface()) {
2505 ObjCInterfaceDecl *CurrentClass) {
2519 if (ObjCInterfaceDecl *ResultClass
2629 void searchFrom(ObjCInterfaceDecl *iface) {
2640 if (ObjCInterfaceDecl *super = iface->getSuperClass())
2834 if (ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface())
2860 ObjCInterfaceDecl *CurrentClass = dyn_cast<ObjCInterfaceDecl>(ClassDecl);
2888 if (isa<ObjCInterfaceDecl>(ObjCMethod->getDeclContext()) ||
2957 ObjCInterfaceDecl *Class = getObjCInterfaceDecl(ClassName, DeclStart);
3088 void Sema::CollectIvarsToConstructOrDestruct(ObjCInterfaceDecl *OI,