Home
last modified time | relevance | path

Searched refs:CDecl (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp394 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()
3767 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local
3768 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo()
3773 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo()
[all …]
H A DRewriteObjC.cpp322 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
333 virtual void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl,
535 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl,
3098 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument
3100 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct()
3101 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct()
3104 if (ObjCSynthesizedStructs.count(CDecl)) in RewriteObjCInternalStruct()
3106 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct()
3107 int NumIvars = CDecl->ivar_size(); in RewriteObjCInternalStruct()
3108 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp56 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);
1002 ObjCContainerDecl *CDecl, in migrateMethodInstanceType() argument
1010 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType()
1019 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType()
1026 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType()
1032 ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl); in migrateMethodInstanceType()
1034 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDeclObjC.cpp1166 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local
1167 if (!CDecl) { in ActOnCompatibilityAlias()
1176 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1809 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local
1821 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1824 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface()
1825 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1829 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface()
1868 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1872 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
[all …]
H A DSemaObjCProperty.cpp195 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 DSemaCodeComplete.cpp7389 ObjCInterfaceDecl *CDecl = nullptr; in CodeCompleteObjCSuperMessage() local
7392 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage()
7393 if (!CDecl) in CodeCompleteObjCSuperMessage()
7397 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage()
7398 if (!CDecl) in CodeCompleteObjCSuperMessage()
7406 AtArgumentExpression, CDecl); in CodeCompleteObjCSuperMessage()
7415 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage()
7420 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage()
7440 if (CDecl) in CodeCompleteObjCSuperMessage()
7441 Receiver = ParsedType::make(Context.getObjCInterfaceType(CDecl)); in CodeCompleteObjCSuperMessage()
[all …]
H A DSemaDecl.cpp8249 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() local
8251 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate()
8252 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate()
8345 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() local
8347 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration()
8348 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration()
17087 if (ObjCCategoryDecl *CDecl = in ActOnIvar() local
17089 if (LangOpts.ObjCRuntime.isFragile() || !CDecl->IsClassExtension()) { in ActOnIvar()
17090 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar()
17593 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local
[all …]
H A DSemaLookup.cpp5174 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument
5175 if (!CDecl) return; in addCorrectionDecl()
5180 CorrectionDecls.push_back(CDecl); in addCorrectionDecl()
5183 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DTypoCorrection.h166 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() argument
168 addCorrectionDecl(CDecl); in setCorrectionDecl()
179 void addCorrectionDecl(NamedDecl *CDecl);
H A DSema.h4350 ObjCContainerDecl *CDecl,
4400 ObjCContainerDecl *CDecl,
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclPrinter.cpp40 void PrintConstructorInitializers(CXXConstructorDecl *CDecl,
302 void DeclPrinter::PrintConstructorInitializers(CXXConstructorDecl *CDecl, in PrintConstructorInitializers() argument
305 for (const auto *BMInitializer : CDecl->inits()) { in PrintConstructorInitializers()
605 CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D); in VisitFunctionDecl() local
742 if (CDecl) { in VisitFunctionDecl()
744 PrintConstructorInitializers(CDecl, Proto); in VisitFunctionDecl()
H A DTypePrinter.cpp1703 case attr::CDecl: OS << "cdecl"; break; in printAttributedAfter()
H A DASTContext.cpp2569 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument
2571 if (const auto *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols()
2587 } else if (const auto *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols()
2591 } else if (const auto *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
H A DType.cpp3555 case attr::CDecl: in isCallingConv()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseObjc.cpp594 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument
707 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
791 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCIndex.cpp1120 ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(PD->getDeclContext()); in VisitObjCPropertyDecl() local
1121 if (!CDecl || !CDecl->IsClassExtension()) in VisitObjCPropertyDecl()
1124 ObjCInterfaceDecl *ID = CDecl->getClassInterface(); in VisitObjCPropertyDecl()
1138 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
1143 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTContext.h2362 void CollectInheritedProtocols(const Decl *CDecl,
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DParser.h1667 Decl *CDecl);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DAttr.td921 def CDecl : DeclOrTypeAttr {