Home
last modified time | relevance | path

Searched refs:LinkageSpecDecl (Results 1 – 25 of 25) sorted by relevance

/external/clang/include/clang/AST/
DDeclCXX.h2523 class LinkageSpecDecl : public Decl, public DeclContext {
2550 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl() function
2557 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
2561 static LinkageSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2597 static DeclContext *castToDeclContext(const LinkageSpecDecl *D) { in castToDeclContext()
2598 return static_cast<DeclContext *>(const_cast<LinkageSpecDecl*>(D)); in castToDeclContext()
2600 static LinkageSpecDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
2601 return static_cast<LinkageSpecDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
DDeclBase.h39 class LinkageSpecDecl; variable
DRecursiveASTVisitor.h1384 DEF_TRAVERSE_DECL(LinkageSpecDecl, {})
/external/clang/lib/AST/
DDeclPrinter.cpp77 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
345 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
877 void DeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
879 if (D->getLanguage() == LinkageSpecDecl::lang_c) in VisitLinkageSpecDecl()
882 assert(D->getLanguage() == LinkageSpecDecl::lang_cxx && in VisitLinkageSpecDecl()
DDeclCXX.cpp2012 void LinkageSpecDecl::anchor() { } in anchor()
2014 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, in Create()
2020 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces); in Create()
2023 LinkageSpecDecl *LinkageSpecDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
2025 return new (C, ID) LinkageSpecDecl(nullptr, SourceLocation(), in CreateDeserialized()
DDeclBase.cpp964 LinkageSpecDecl::LanguageIDs ID) { in isLinkageSpecContext()
967 return cast<LinkageSpecDecl>(DC)->getLanguage() == ID; in isLinkageSpecContext()
974 return isLinkageSpecContext(this, clang::LinkageSpecDecl::lang_c); in isExternCContext()
978 return isLinkageSpecContext(this, clang::LinkageSpecDecl::lang_cxx); in isExternCXXContext()
DASTDumper.cpp478 void VisitLinkageSpecDecl(const LinkageSpecDecl *D);
1526 void ASTDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1528 case LinkageSpecDecl::lang_c: OS << " C"; break; in VisitLinkageSpecDecl()
1529 case LinkageSpecDecl::lang_cxx: OS << " C++"; break; in VisitLinkageSpecDecl()
DDecl.cpp572 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
2698 dyn_cast<LinkageSpecDecl>(getFirstDecl()->getDeclContext()); in getBuiltinID()
2709 if (LinkageDecl->getLanguage() != LinkageSpecDecl::lang_c) in getBuiltinID()
DASTImporter.cpp163 Decl *VisitLinkageSpecDecl(LinkageSpecDecl *D);
3861 Decl *ASTNodeImporter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
3870 LinkageSpecDecl *ToLinkageSpec = in VisitLinkageSpecDecl()
3871 LinkageSpecDecl::Create(Importer.getToContext(), in VisitLinkageSpecDecl()
DItaniumMangle.cpp747 while (isa<LinkageSpecDecl>(DC)) { in IgnoreLinkageSpecDecls()
/external/clang/tools/libclang/
DCursorVisitor.h234 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
DCIndex.cpp1456 bool CursorVisitor::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/Index/
DIndexingContext.cpp204 if (isa<LinkageSpecDecl>(Parent) || isa<BlockDecl>(Parent)) in adjustParent()
DUSRGeneration.cpp94 void VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.h1179 void EmitLinkageSpec(const LinkageSpecDecl *D);
DCodeGenModule.cpp3725 void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { in EmitLinkageSpec()
3726 if (LSD->getLanguage() != LinkageSpecDecl::lang_c && in EmitLinkageSpec()
3727 LSD->getLanguage() != LinkageSpecDecl::lang_cxx) { in EmitLinkageSpec()
3896 EmitLinkageSpec(cast<LinkageSpecDecl>(D)); in EmitTopLevelDecl()
/external/clang/lib/Sema/
DSemaDecl.cpp1809 LinkageSpecDecl *CLinkageDecl = in LazilyCreateBuiltin()
1810 LinkageSpecDecl::Create(Context, Parent, Loc, Loc, in LazilyCreateBuiltin()
1811 LinkageSpecDecl::lang_c, false); in LazilyCreateBuiltin()
4838 while (isa<LinkageSpecDecl>(Cur) || isa<CapturedDecl>(Cur)) in diagnoseQualifiedDeclaration()
5833 while (!DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) in adjustContextForLocalExternDecl()
11905 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
11906 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
11907 LinkageSpecDecl::lang_c)) { in AddKnownFunctionAttributes()
15028 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext()
15030 case LinkageSpecDecl::lang_c: in checkModuleImportContext()
[all …]
DSemaDeclCXX.cpp12134 LinkageSpecDecl::LanguageIDs Language; in ActOnStartLinkageSpecification()
12136 Language = LinkageSpecDecl::lang_c; in ActOnStartLinkageSpecification()
12138 Language = LinkageSpecDecl::lang_cxx; in ActOnStartLinkageSpecification()
12147 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, ExternLoc, in ActOnStartLinkageSpecification()
12163 LinkageSpecDecl* LSDecl = cast<LinkageSpecDecl>(LinkageSpec); in ActOnFinishLinkageSpecification()
DSemaLookup.cpp1546 DC && !DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) { in isVisibleSlow()
DSemaTemplate.cpp5820 while (Ctx && isa<LinkageSpecDecl>(Ctx)) in CheckTemplateDeclScope()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp328 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
1348 void ASTDeclReader::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1350 D->setLanguage((LinkageSpecDecl::LanguageIDs)Record[Idx++]); in VisitLinkageSpecDecl()
3247 D = LinkageSpecDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp111 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
1059 void ASTDeclWriter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp739 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
3045 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in getFunctionSourceLocation()
3073 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in RewriteLineDirective()
DRewriteObjC.cpp674 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h293 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>