/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 394 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 405 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, 455 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 860 auto *CDecl = cast<ObjCContainerDecl>(D->getDeclContext()); in getIvarAccessString() local 862 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() 863 CDecl = CatDecl->getClassInterface(); in getIvarAccessString() 864 std::string RecName = std::string(CDecl->getName()); in getIvarAccessString() 3756 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local 3757 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo() 3762 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 56 void migrateAllMethodInstaceType(ASTContext &Ctx, ObjCContainerDecl *CDecl); 57 void migrateMethodInstanceType(ASTContext &Ctx, ObjCContainerDecl *CDecl, 62 void migrateFactoryMethod(ASTContext &Ctx, ObjCContainerDecl *CDecl, 79 void migrateARCSafeAnnotation(ASTContext &Ctx, ObjCContainerDecl *CDecl); 998 ObjCContainerDecl *CDecl, in migrateMethodInstanceType() argument 1006 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType() 1015 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType() 1022 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType() 1028 ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl); in migrateMethodInstanceType() 1030 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaDeclObjC.cpp | 1173 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local 1174 if (!CDecl) { in ActOnCompatibilityAlias() 1183 Context, SemaRef.CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 1822 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local 1834 CDecl = ObjCCategoryDecl::Create(Context, SemaRef.CurContext, in ActOnStartCategoryInterface() 1837 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface() 1838 SemaRef.CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 1842 ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface() 1843 return CDecl; in ActOnStartCategoryInterface() 1882 CDecl = ObjCCategoryDecl::Create(Context, SemaRef.CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() [all …]
|
H A D | SemaObjCProperty.cpp | 195 if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnProperty() local 196 if (CDecl->IsClassExtension()) { in ActOnProperty() 410 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(SemaRef.CurContext); in HandlePropertyInClassExtension() local 414 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension() 419 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 503 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() 551 Scope *S, ObjCContainerDecl *CDecl, SourceLocation AtLoc, in CreatePropertyDecl() argument 599 DeclContext *DC = CDecl; in CreatePropertyDecl() 692 CDecl->hasAttr<ObjCDirectMembersAttr>()) { in CreatePropertyDecl() 693 if (isa<ObjCProtocolDecl>(CDecl)) { in CreatePropertyDecl() [all …]
|
H A D | SemaCodeComplete.cpp | 8098 ObjCInterfaceDecl *CDecl = nullptr; in CodeCompleteObjCSuperMessage() local 8101 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage() 8102 if (!CDecl) in CodeCompleteObjCSuperMessage() 8106 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage() 8107 if (!CDecl) in CodeCompleteObjCSuperMessage() 8115 AtArgumentExpression, CDecl); in CodeCompleteObjCSuperMessage() 8125 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage() 8130 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage() 8151 if (CDecl) in CodeCompleteObjCSuperMessage() 8152 Receiver = ParsedType::make(getASTContext().getObjCInterfaceType(CDecl)); in CodeCompleteObjCSuperMessage() [all …]
|
H A D | SemaLookup.cpp | 5392 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument 5393 if (!CDecl) return; in addCorrectionDecl() 5398 CorrectionDecls.push_back(CDecl); in addCorrectionDecl() 5401 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
|
H A D | SemaDecl.cpp | 8898 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() local 8900 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate() 8901 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate() 8994 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() local 8996 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration() 8997 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration() 19291 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local 19299 ObjCInterfaceDecl *IDecl = CDecl->getClassInterface(); in ActOnFields() 19319 ClsFields[i]->setLexicalDeclContext(CDecl); in ActOnFields() 19320 CDecl->addDecl(ClsFields[i]); in ActOnFields() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 41 void PrintConstructorInitializers(CXXConstructorDecl *CDecl, 339 void DeclPrinter::PrintConstructorInitializers(CXXConstructorDecl *CDecl, in PrintConstructorInitializers() argument 342 for (const auto *BMInitializer : CDecl->inits()) { in PrintConstructorInitializers() 360 Out << CDecl->getNameAsString(); in PrintConstructorInitializers() 661 CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D); in VisitFunctionDecl() local 798 if (CDecl) { in VisitFunctionDecl() 800 PrintConstructorInitializers(CDecl, Proto); in VisitFunctionDecl()
|
H A D | TypePrinter.cpp | 1976 case attr::CDecl: OS << "cdecl"; break; in printAttributedAfter()
|
H A D | ASTContext.cpp | 2632 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument 2634 if (const auto *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols() 2650 } else if (const auto *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols() 2654 } else if (const auto *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
|
H A D | Type.cpp | 4145 case attr::CDecl: in isCallingConv()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 978 CreatePropertyDecl(Scope *S, ObjCContainerDecl *CDecl, SourceLocation AtLoc, 999 ObjCContainerDecl *CDecl,
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseObjc.cpp | 643 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument 841 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTContext.h | 2597 void CollectInheritedProtocols(const Decl *CDecl,
|
/freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
H A D | Parser.h | 1775 Decl *CDecl);
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Attr.td | 1133 def CDecl : DeclOrTypeAttr {
|