| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 3840 Result += CDecl->getName(); in ObjCIvarBitfieldGroupDecl() 3852 Result += CDecl->getName(); in ObjCIvarBitfieldGroupType() 3879 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() 5856 RewriteInterfaceDecl(CDecl); in HandleTranslationUnit() 6490 if (CDecl->getImplementation()) in Write_class_t() 6576 rootClass ? CDecl : CDecl->getSuperClass(); in Write_class_t() 7078 CDecl->instance_properties()); in RewriteObjCClassMetaData() 7093 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData() 7115 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData() 7268 ObjCCategoryDecl *CDecl in RewriteObjCCategoryImplDecl() local [all …]
|
| H A D | RewriteObjC.cpp | 3089 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() 3095 int NumIvars = CDecl->ivar_size(); in RewriteObjCInternalStruct() 3114 Result += CDecl->getNameAsString(); in RewriteObjCInternalStruct() 3143 if (CDecl->protocol_begin() != CDecl->protocol_end()) { in RewriteObjCInternalStruct() 5320 IVI = CDecl->ivar_begin(); in RewriteObjCClassMetaData() 5321 IVE = CDecl->ivar_end(); in RewriteObjCClassMetaData() 5455 if (CDecl->protocol_begin() != CDecl->protocol_end()) { in RewriteObjCClassMetaData() 5508 if (CDecl->protocol_begin() != CDecl->protocol_end()) { in RewriteObjCClassMetaData() 5620 ObjCCategoryDecl *CDecl in RewriteObjCCategoryImplDecl() local 5656 if (CDecl) in RewriteObjCCategoryImplDecl() [all …]
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 1009 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType() 1040 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType() 1280 if (CDecl->isDeprecated() || IsCategoryNameWithDeprecatedSuffix(CDecl)) in migrateAllMethodInstaceType() 1284 for (auto *Method : CDecl->methods()) { in migrateAllMethodInstaceType() 1287 migrateMethodInstanceType(Ctx, CDecl, Method); in migrateAllMethodInstaceType() 1560 if (!isa<ObjCInterfaceDecl>(CDecl) || CDecl->isDeprecated()) in migrateARCSafeAnnotation() 1564 for (const auto *Method : CDecl->methods()) in migrateARCSafeAnnotation() 1854 if (canModify(CDecl)) in HandleTranslationUnit() 1855 migrateObjCContainerDecl(Ctx, CDecl); in HandleTranslationUnit() 1919 bool CanModify = canModify(CDecl); in HandleTranslationUnit() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaDeclObjC.cpp | 1168 if (!CDecl) { in ActOnCompatibilityAlias() 1811 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local 1826 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface() 1832 return CDecl; in ActOnStartCategoryInterface() 1894 CheckObjCDeclScope(CDecl); in ActOnStartCategoryInterface() 1896 return CDecl; in ActOnStartCategoryInterface() 1927 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation() 1930 CDecl->setInvalidDecl(); in ActOnStartCategoryImplementation() 1963 CheckObjCDeclScope(CDecl); in ActOnStartCategoryImplementation() 1965 return CDecl; in ActOnStartCategoryImplementation() [all …]
|
| H A D | SemaObjCProperty.cpp | 196 if (CDecl->IsClassExtension()) { in ActOnProperty() 419 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() local 423 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension() 428 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 614 DeclContext *DC = CDecl; in CreatePropertyDecl() 707 CDecl->hasAttr<ObjCDirectMembersAttr>()) { in CreatePropertyDecl() 708 if (isa<ObjCProtocolDecl>(CDecl)) { in CreatePropertyDecl() 1755 CollectImmediateProperties(ObjCContainerDecl *CDecl, in CollectImmediateProperties() argument 1824 if (ObjCInterfaceDecl *SDecl = CDecl->getSuperClass()) { in CollectSuperClassPropertyImplementations() 2015 isa<ObjCCategoryDecl>(CDecl) in DiagnoseUnimplementedAccessor() [all …]
|
| H A D | SemaCodeComplete.cpp | 7879 ObjCInterfaceDecl *CDecl = nullptr; in CodeCompleteObjCSuperMessage() local 7882 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage() 7883 if (!CDecl) in CodeCompleteObjCSuperMessage() 7887 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage() 7888 if (!CDecl) in CodeCompleteObjCSuperMessage() 7905 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage() 7910 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage() 7930 if (CDecl) in CodeCompleteObjCSuperMessage() 7977 ObjCInterfaceDecl *CDecl = nullptr; in AddClassMessageCompletions() local 7985 CDecl = Interface->getInterface(); in AddClassMessageCompletions() [all …]
|
| H A D | SemaDecl.cpp | 8682 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate() 8683 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate() 8778 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration() 8779 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration() 17791 if (ObjCCategoryDecl *CDecl = in ActOnIvar() local 18396 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local 18404 ObjCInterfaceDecl *IDecl = CDecl->getClassInterface(); in ActOnFields() 18424 ClsFields[i]->setLexicalDeclContext(CDecl); in ActOnFields() 18425 CDecl->addDecl(ClsFields[i]); in ActOnFields() 18427 CDecl->setIvarLBraceLoc(LBrac); in ActOnFields() [all …]
|
| H A D | SemaLookup.cpp | 5499 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument 5500 if (!CDecl) return; in addCorrectionDecl() 5505 CorrectionDecls.push_back(CDecl); in addCorrectionDecl() 5508 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | TypoCorrection.h | 166 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() argument 168 addCorrectionDecl(CDecl); in setCorrectionDecl() 179 void addCorrectionDecl(NamedDecl *CDecl);
|
| H A D | Sema.h | 4642 ObjCContainerDecl *CDecl, 4692 ObjCContainerDecl *CDecl,
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclPrinter.cpp | 40 void PrintConstructorInitializers(CXXConstructorDecl *CDecl, 304 void DeclPrinter::PrintConstructorInitializers(CXXConstructorDecl *CDecl, in PrintConstructorInitializers() argument 307 for (const auto *BMInitializer : CDecl->inits()) { in PrintConstructorInitializers() 607 CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D); in VisitFunctionDecl() local 742 if (CDecl) { in VisitFunctionDecl() 744 PrintConstructorInitializers(CDecl, Proto); in VisitFunctionDecl()
|
| H A D | TypePrinter.cpp | 1765 case attr::CDecl: OS << "cdecl"; break; in printAttributedAfter()
|
| H A D | ASTContext.cpp | 2625 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument 2627 if (const auto *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols() 2643 } else if (const auto *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols() 2647 } else if (const auto *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
|
| H A D | Type.cpp | 3622 case attr::CDecl: in isCallingConv()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TransferTest.cpp | 2774 const ValueDecl *CDecl = findValueDecl(ASTCtx, "C"); in TEST() local 2775 ASSERT_THAT(CDecl, NotNull()); in TEST() 2778 dyn_cast_or_null<BoolValue>(Env.getValue(*CDecl, SkipPast::None)); in TEST() 3301 const ValueDecl *CDecl = findValueDecl(ASTCtx, "C"); in TEST() local 3302 ASSERT_THAT(CDecl, NotNull()); in TEST() 3317 auto &CVal = *cast<BoolValue>(Env.getValue(*CDecl, SkipPast::None)); in TEST() 3324 auto &CVal = *cast<BoolValue>(Env.getValue(*CDecl, SkipPast::None)); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseObjc.cpp | 594 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument 709 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList() 793 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 1126 ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(PD->getDeclContext()); in VisitObjCPropertyDecl() local 1127 if (!CDecl || !CDecl->IsClassExtension()) in VisitObjCPropertyDecl() 1130 ObjCInterfaceDecl *ID = CDecl->getClassInterface(); in VisitObjCPropertyDecl() 1144 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1149 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2498 void CollectInheritedProtocols(const Decl *CDecl,
|
| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | Parser.h | 1684 Decl *CDecl);
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Attr.td | 969 def CDecl : DeclOrTypeAttr {
|