Home
last modified time | relevance | path

Searched refs:CatDecl (Results 1 – 11 of 11) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp816 auto *CatDecl = dyn_cast<ObjCCategoryDecl>(PropDecl->getDeclContext()); in findShadowedPropertyDecl() local
819 if (!CatDecl || !CatDecl->IsClassExtension()) in findShadowedPropertyDecl()
823 DeclContext::lookup_result R = CatDecl->getClassInterface()->lookup(ID); in findShadowedPropertyDecl()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp564 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(D)) { in IsCategoryNameWithDeprecatedSuffix() local
565 StringRef Name = CatDecl->getName(); in IsCategoryNameWithDeprecatedSuffix()
1043 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() local
1044 IDecl = CatDecl->getClassInterface(); in migrateMethodInstanceType()
1314 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateFactoryMethod() local
1315 IDecl = CatDecl->getClassInterface(); in migrateFactoryMethod()
1860 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(*D)) { in HandleTranslationUnit() local
1861 if (canModify(CatDecl)) in HandleTranslationUnit()
1862 migrateObjCContainerDecl(Ctx, CatDecl); in HandleTranslationUnit()
/external/clang/lib/Sema/
DSemaObjCProperty.cpp2158 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2159 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2160 GetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2162 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2169 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2170 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2171 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2173 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
DSemaDeclObjC.cpp2831 ObjCCategoryDecl *CatDecl = CatIMPDecl->getCategoryDecl(); in CheckCategoryVsClassMethodMatches() local
2832 if (!CatDecl) in CheckCategoryVsClassMethodMatches()
2834 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
2916 if (ObjCCategoryImplDecl *CatDecl = in ImplMethodsVsClassMethods() local
2918 CheckCategoryVsClassMethodMatches(CatDecl); in ImplMethodsVsClassMethods()
DSemaCodeComplete.cpp5091 for (auto *CatDecl : IFace->known_categories()) { in AddObjCMethods() local
5092 AddObjCMethods(CatDecl, WantInstanceMethods, WantKind, SelIdents, in AddObjCMethods()
5098 = CatDecl->getReferencedProtocols(); in AddObjCMethods()
5107 if (ObjCCategoryImplDecl *Impl = CatDecl->getImplementation()) in AddObjCMethods()
DSemaDeclAttr.cpp4500 if (ObjCCategoryDecl *CatDecl = in handleObjCDesignatedInitializer() local
4502 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
/external/clang/lib/AST/
DDeclObjC.cpp1930 ObjCCategoryDecl *CatDecl = in Create() local
1936 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
1938 IDecl->setCategoryListRaw(CatDecl); in Create()
1940 L->AddedObjCCategoryToInterface(CatDecl, IDecl); in Create()
1944 return CatDecl; in Create()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp859 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() local
860 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
1127 void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
1128 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl()
1131 if (CatDecl->getIvarRBraceLoc().isValid()) { in RewriteCategoryDecl()
1133 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1139 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
1142 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
1144 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
1148 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
[all …]
DRewriteObjC.cpp966 void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
967 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl()
972 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
974 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
976 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
980 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp975 for (auto *CatDecl : ID->visible_extensions()) { in getRuntimeDefinition() local
976 Val = CatDecl->getMethod(Sel, in getRuntimeDefinition()
/external/clang/lib/CodeGen/
DCGObjCGNU.cpp2065 const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl(); in GenerateCategory() local
2066 const ObjCList<ObjCProtocolDecl> &Protos = CatDecl->getReferencedProtocols(); in GenerateCategory()