Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/Sema/
DSemaObjCProperty.cpp2401 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2402 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2403 GetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2405 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2412 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) in ProcessPropertyDecl() local
2413 if (CatDecl->IsClassExtension()) in ProcessPropertyDecl()
2414 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2416 CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2424 if (const ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CD)) { in ProcessPropertyDecl() local
2425 auto *ExistingGetter = CatDecl->getClassInterface()->lookupMethod( in ProcessPropertyDecl()
[all …]
DSemaDeclObjC.cpp2930 ObjCCategoryDecl *CatDecl = CatIMPDecl->getCategoryDecl(); in CheckCategoryVsClassMethodMatches() local
2931 if (!CatDecl) in CheckCategoryVsClassMethodMatches()
2933 ObjCInterfaceDecl *IDecl = CatDecl->getClassInterface(); in CheckCategoryVsClassMethodMatches()
3015 if (ObjCCategoryImplDecl *CatDecl = in ImplMethodsVsClassMethods() local
3017 CheckCategoryVsClassMethodMatches(CatDecl); in ImplMethodsVsClassMethods()
DSemaCodeComplete.cpp6834 for (ObjCCategoryDecl *CatDecl : IFace->known_categories()) { in AddObjCMethods()
6835 AddObjCMethods(CatDecl, WantInstanceMethods, WantKind, SelIdents, in AddObjCMethods()
6841 CatDecl->getReferencedProtocols(); in AddObjCMethods()
6849 if (ObjCCategoryImplDecl *Impl = CatDecl->getImplementation()) in AddObjCMethods()
DSemaDeclAttr.cpp5518 if (auto *CatDecl = dyn_cast<ObjCCategoryDecl>(Ctx)) in handleObjCDesignatedInitializer() local
5519 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
/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/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
/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/llvm-project/clang/lib/ARCMigrate/
DObjCMT.cpp567 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(D)) { in IsCategoryNameWithDeprecatedSuffix() local
568 StringRef Name = CatDecl->getName(); in IsCategoryNameWithDeprecatedSuffix()
1036 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() local
1037 IDecl = CatDecl->getClassInterface(); in migrateMethodInstanceType()
1307 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateFactoryMethod() local
1308 IDecl = CatDecl->getClassInterface(); in migrateFactoryMethod()
1859 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(*D)) { in HandleTranslationUnit() local
1860 if (canModify(CatDecl)) in HandleTranslationUnit()
1861 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/llvm-project/clang/lib/AST/
DDeclObjC.cpp2053 auto *CatDecl = in Create() local
2059 CatDecl->NextClassCategory = IDecl->getCategoryListRaw(); in Create()
2061 IDecl->setCategoryListRaw(CatDecl); in Create()
2063 L->AddedObjCCategoryToInterface(CatDecl, IDecl); in Create()
2067 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/llvm-project/clang/lib/Frontend/Rewrite/
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 …]
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()
/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()
/external/llvm-project/clang/lib/CodeGen/
DCGObjCGNU.cpp3256 const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl(); in GenerateCategory() local
3278 Elements.addBitCast(GenerateCategoryProtocolList(CatDecl), PtrTy); in GenerateCategory()