Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp2371 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2372 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2373 GetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2375 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2382 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2383 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2384 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2386 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2394 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) { in ProcessPropertyDecl() local
2395 auto *ExistingGetter = CatDecl->getClassInterface()->lookupMethod( in ProcessPropertyDecl()
[all …]
H A DSemaDeclObjC.cpp2946 ObjCCategoryDecl *CatDecl = CatIMPDecl->getCategoryDecl(); in CheckCategoryVsClassMethodMatches() local
2947 if (!CatDecl) in CheckCategoryVsClassMethodMatches()
2949 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
3031 if (ObjCCategoryImplDecl *CatDecl = in ImplMethodsVsClassMethods() local
3033 CheckCategoryVsClassMethodMatches(CatDecl); in ImplMethodsVsClassMethods()
H A DSemaObjC.cpp2092 if (auto *CatDecl = dyn_cast<ObjCCategoryDecl>(Ctx)) in handleDesignatedInitializer() local
2093 IFace = CatDecl->getClassInterface(); in handleDesignatedInitializer()
H A DSemaCodeComplete.cpp7696 for (ObjCCategoryDecl *CatDecl : IFace->known_categories()) { in AddObjCMethods()
7697 AddObjCMethods(CatDecl, WantInstanceMethods, WantKind, SelIdents, in AddObjCMethods()
7703 CatDecl->getReferencedProtocols(); in AddObjCMethods()
7711 if (ObjCCategoryImplDecl *Impl = CatDecl->getImplementation()) in AddObjCMethods()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckObjCDealloc.cpp803 auto *CatDecl = dyn_cast<ObjCCategoryDecl>(PropDecl->getDeclContext()); in findShadowedPropertyDecl() local
806 if (!CatDecl || !CatDecl->IsClassExtension()) in findShadowedPropertyDecl()
810 DeclContext::lookup_result R = CatDecl->getClassInterface()->lookup(ID); in findShadowedPropertyDecl()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp563 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(D)) { in IsCategoryNameWithDeprecatedSuffix() local
564 StringRef Name = CatDecl->getName(); in IsCategoryNameWithDeprecatedSuffix()
1030 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() local
1031 IDecl = CatDecl->getClassInterface(); in migrateMethodInstanceType()
1301 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateFactoryMethod() local
1302 IDecl = CatDecl->getClassInterface(); in migrateFactoryMethod()
1851 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(*D)) { in HandleTranslationUnit() local
1852 if (canModify(CatDecl)) in HandleTranslationUnit()
1853 migrateObjCContainerDecl(Ctx, CatDecl); in HandleTranslationUnit()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp2134 auto *CatDecl = in Create() local
2140 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
2142 IDecl->setCategoryListRaw(CatDecl); in Create()
2144 L->AddedObjCCategoryToInterface(CatDecl, IDecl); in Create()
2148 return CatDecl; in Create()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp862 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() local
863 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
1129 void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
1130 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl()
1133 if (CatDecl->getIvarRBraceLoc().isValid()) { in RewriteCategoryDecl()
1135 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1141 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
1144 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
1146 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
1150 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp3462 const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl(); in GenerateCategory() local
3483 Elements.add(GenerateCategoryProtocolList(CatDecl)); in GenerateCategory()