Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaObjCProperty.cpp2392 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2393 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2394 GetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2396 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2403 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2404 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2405 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2407 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2415 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) { in ProcessPropertyDecl() local
2416 auto *ExistingGetter = CatDecl->getClassInterface()->lookupMethod( in ProcessPropertyDecl()
[all …]
H A DSemaDeclObjC.cpp2937 ObjCCategoryDecl *CatDecl = CatIMPDecl->getCategoryDecl(); in CheckCategoryVsClassMethodMatches() local
2938 if (!CatDecl) in CheckCategoryVsClassMethodMatches()
2940 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
3022 if (ObjCCategoryImplDecl *CatDecl = in ImplMethodsVsClassMethods() local
3024 CheckCategoryVsClassMethodMatches(CatDecl); in ImplMethodsVsClassMethods()
H A DSemaCodeComplete.cpp7486 for (ObjCCategoryDecl *CatDecl : IFace->known_categories()) { in AddObjCMethods()
7487 AddObjCMethods(CatDecl, WantInstanceMethods, WantKind, SelIdents, in AddObjCMethods()
7493 CatDecl->getReferencedProtocols(); in AddObjCMethods()
7501 if (ObjCCategoryImplDecl *Impl = CatDecl->getImplementation()) in AddObjCMethods()
H A DSemaDeclAttr.cpp6008 if (auto *CatDecl = dyn_cast<ObjCCategoryDecl>(Ctx)) in handleObjCDesignatedInitializer() local
6009 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckObjCDealloc.cpp812 auto *CatDecl = dyn_cast<ObjCCategoryDecl>(PropDecl->getDeclContext()); in findShadowedPropertyDecl() local
815 if (!CatDecl || !CatDecl->IsClassExtension()) in findShadowedPropertyDecl()
819 DeclContext::lookup_result R = CatDecl->getClassInterface()->lookup(ID); in findShadowedPropertyDecl()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DObjCMT.cpp566 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(D)) { in IsCategoryNameWithDeprecatedSuffix() local
567 StringRef Name = CatDecl->getName(); in IsCategoryNameWithDeprecatedSuffix()
1033 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() local
1034 IDecl = CatDecl->getClassInterface(); in migrateMethodInstanceType()
1304 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateFactoryMethod() local
1305 IDecl = CatDecl->getClassInterface(); in migrateFactoryMethod()
1856 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(*D)) { in HandleTranslationUnit() local
1857 if (canModify(CatDecl)) in HandleTranslationUnit()
1858 migrateObjCContainerDecl(Ctx, CatDecl); in HandleTranslationUnit()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclObjC.cpp2073 auto *CatDecl = in Create() local
2079 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
2081 IDecl->setCategoryListRaw(CatDecl); in Create()
2083 L->AddedObjCCategoryToInterface(CatDecl, IDecl); in Create()
2087 return CatDecl; in Create()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp864 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
1131 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl()
1134 if (CatDecl->getIvarRBraceLoc().isValid()) { in RewriteCategoryDecl()
1136 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1142 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
1145 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
1147 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
1151 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
6620 StringRef CatName = CatDecl->getName(); in Write_category_t()
7354 Result += CatDecl->getName(); in RewriteCategorySetupInitHook()
[all …]
H A DRewriteObjC.cpp970 void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
971 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl()
976 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
978 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
980 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
984 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjCGNU.cpp3345 const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl(); in GenerateCategory() local
3367 Elements.addBitCast(GenerateCategoryProtocolList(CatDecl), PtrTy); in GenerateCategory()