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.cpp2380 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2381 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2382 GetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2384 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2391 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2392 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2393 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2395 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2403 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) { in ProcessPropertyDecl() local
2404 auto *ExistingGetter = CatDecl->getClassInterface()->lookupMethod( in ProcessPropertyDecl()
[all …]
H A DSemaDeclObjC.cpp2954 ObjCCategoryDecl *CatDecl = CatIMPDecl->getCategoryDecl(); in CheckCategoryVsClassMethodMatches() local
2955 if (!CatDecl) in CheckCategoryVsClassMethodMatches()
2957 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
3039 if (ObjCCategoryImplDecl *CatDecl = in ImplMethodsVsClassMethods() local
3041 CheckCategoryVsClassMethodMatches(CatDecl); in ImplMethodsVsClassMethods()
H A DSemaObjC.cpp2090 if (auto *CatDecl = dyn_cast<ObjCCategoryDecl>(Ctx)) in handleDesignatedInitializer() local
2091 IFace = CatDecl->getClassInterface(); in handleDesignatedInitializer()
H A DSemaCodeComplete.cpp7847 for (ObjCCategoryDecl *CatDecl : IFace->known_categories()) { in AddObjCMethods()
7848 AddObjCMethods(CatDecl, WantInstanceMethods, WantKind, SelIdents, in AddObjCMethods()
7854 CatDecl->getReferencedProtocols(); in AddObjCMethods()
7862 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/AST/
H A DDeclObjC.cpp2131 auto *CatDecl = in Create() local
2137 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
2139 IDecl->setCategoryListRaw(CatDecl); in Create()
2141 L->AddedObjCCategoryToInterface(CatDecl, IDecl); in Create()
2145 return CatDecl; in Create()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp861 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() local
862 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
1128 void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
1129 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl()
1132 if (CatDecl->getIvarRBraceLoc().isValid()) { in RewriteCategoryDecl()
1134 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1140 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
1143 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
1145 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
1149 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
[all …]
H A DRewriteObjC.cpp968 void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl() argument
969 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl()
974 for (auto *I : CatDecl->instance_properties()) in RewriteCategoryDecl()
976 for (auto *I : CatDecl->instance_methods()) in RewriteCategoryDecl()
978 for (auto *I : CatDecl->class_methods()) in RewriteCategoryDecl()
982 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp3554 const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl(); in GenerateCategory() local
3575 Elements.add(GenerateCategoryProtocolList(CatDecl)); in GenerateCategory()