| /openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 395 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 406 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, 456 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 861 auto *CDecl = cast<ObjCContainerDecl>(D->getDeclContext()); in getIvarAccessString() local 863 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() 864 CDecl = CatDecl->getClassInterface(); in getIvarAccessString() 865 std::string RecName = std::string(CDecl->getName()); in getIvarAccessString() 3757 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local 3758 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo() 3763 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo() [all …]
|
| H A D | RewriteObjC.cpp | 322 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 333 virtual void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 535 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 3086 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument 3088 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct() 3089 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() 3092 if (ObjCSynthesizedStructs.count(CDecl)) in RewriteObjCInternalStruct() 3094 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct() 3095 int NumIvars = CDecl->ivar_size(); in RewriteObjCInternalStruct() 3096 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct() [all …]
|
| /openbsd-src/gnu/llvm/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); 1001 ObjCContainerDecl *CDecl, in migrateMethodInstanceType() argument 1009 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType() 1018 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType() 1025 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType() 1031 ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl); in migrateMethodInstanceType() 1033 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaDeclObjC.cpp | 1175 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local 1176 if (!CDecl) { in ActOnCompatibilityAlias() 1185 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 1825 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local 1837 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 1840 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface() 1841 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 1845 ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface() 1846 return CDecl; in ActOnStartCategoryInterface() 1885 CDecl = ObjCCategoryDecl::Create(Context, 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() 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() 512 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() 559 ObjCContainerDecl *CDecl, in CreatePropertyDecl() argument 614 DeclContext *DC = CDecl; in CreatePropertyDecl() 707 CDecl->hasAttr<ObjCDirectMembersAttr>()) { in CreatePropertyDecl() 708 if (isa<ObjCProtocolDecl>(CDecl)) { in CreatePropertyDecl() [all …]
|
| H A D | SemaCodeComplete.cpp | 7933 ObjCInterfaceDecl *CDecl = nullptr; in CodeCompleteObjCSuperMessage() local 7936 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage() 7937 if (!CDecl) in CodeCompleteObjCSuperMessage() 7941 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage() 7942 if (!CDecl) in CodeCompleteObjCSuperMessage() 7950 AtArgumentExpression, CDecl); in CodeCompleteObjCSuperMessage() 7959 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage() 7964 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage() 7984 if (CDecl) in CodeCompleteObjCSuperMessage() 7985 Receiver = ParsedType::make(Context.getObjCInterfaceType(CDecl)); in CodeCompleteObjCSuperMessage() [all …]
|
| H A D | SemaDecl.cpp | 8818 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() local 8820 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate() 8821 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate() 8914 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() local 8916 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration() 8917 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration() 18254 if (ObjCCategoryDecl *CDecl = in ActOnIvar() local 18256 if (LangOpts.ObjCRuntime.isFragile() || !CDecl->IsClassExtension()) { in ActOnIvar() 18257 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar() 19009 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local [all …]
|
| H A D | SemaLookup.cpp | 5508 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument 5509 if (!CDecl) return; in addCorrectionDecl() 5514 CorrectionDecls.push_back(CDecl); in addCorrectionDecl() 5517 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
|
| /openbsd-src/gnu/llvm/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 | 4765 ObjCContainerDecl *CDecl, 4815 ObjCContainerDecl *CDecl,
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | DeclPrinter.cpp | 40 void PrintConstructorInitializers(CXXConstructorDecl *CDecl, 306 void DeclPrinter::PrintConstructorInitializers(CXXConstructorDecl *CDecl, in PrintConstructorInitializers() argument 309 for (const auto *BMInitializer : CDecl->inits()) { in PrintConstructorInitializers() 606 CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D); in VisitFunctionDecl() local 741 if (CDecl) { in VisitFunctionDecl() 743 PrintConstructorInitializers(CDecl, Proto); in VisitFunctionDecl()
|
| H A D | TypePrinter.cpp | 1767 case attr::CDecl: OS << "cdecl"; break; in printAttributedAfter()
|
| H A D | ASTContext.cpp | 2636 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument 2638 if (const auto *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols() 2654 } else if (const auto *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols() 2658 } else if (const auto *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
|
| H A D | Type.cpp | 3648 case attr::CDecl: in isCallingConv()
|
| /openbsd-src/gnu/llvm/clang/lib/Parse/ |
| H A D | ParseObjc.cpp | 624 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument 741 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList() 825 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2480 void CollectInheritedProtocols(const Decl *CDecl,
|
| /openbsd-src/gnu/llvm/clang/include/clang/Parse/ |
| H A D | Parser.h | 1704 Decl *CDecl);
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | Attr.td | 988 def CDecl : DeclOrTypeAttr {
|