Home
last modified time | relevance | path

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

123

/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DASTStructExtractor.cpp112 LinkageSpecDecl *linkage_spec_decl = dyn_cast<LinkageSpecDecl>(D); in ExtractFromTopLevelDecl()
DNameSearchContext.cpp66 context = LinkageSpecDecl::Create( in AddFunDecl()
68 clang::LinkageSpecDecl::LanguageIDs::lang_c, false); in AddFunDecl()
DASTResultSynthesizer.cpp75 if (LinkageSpecDecl *linkage_spec_decl = dyn_cast<LinkageSpecDecl>(D)) { in TransformTopLevelDecl()
/external/llvm-project/clang/lib/Sema/
DSemaModule.cpp27 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext()
29 case LinkageSpecDecl::lang_c: in checkModuleImportContext()
33 case LinkageSpecDecl::lang_cxx: in checkModuleImportContext()
39 while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC)) in checkModuleImportContext()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp1183 LinkageSpecDecl::LanguageIDs ID) { in isLinkageSpecContext()
1186 return cast<LinkageSpecDecl>(DC)->getLanguage() == ID; in isLinkageSpecContext()
1193 return isLinkageSpecContext(this, LinkageSpecDecl::lang_c); in isExternCContext()
1196 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1200 cast<LinkageSpecDecl>(DC)->getLanguage() == LinkageSpecDecl::lang_c) in getExternCContext()
1201 return cast<LinkageSpecDecl>(DC); in getExternCContext()
1208 return isLinkageSpecContext(this, LinkageSpecDecl::lang_cxx); in isExternCXXContext()
DDeclCXX.cpp2790 LinkageSpecDecl::LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl() function in LinkageSpecDecl
2799 void LinkageSpecDecl::anchor() {} in anchor()
2801 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, in Create()
2807 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces); in Create()
2810 LinkageSpecDecl *LinkageSpecDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
2812 return new (C, ID) LinkageSpecDecl(nullptr, SourceLocation(), in CreateDeserialized()
DDeclPrinter.cpp81 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
457 } else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
1023 void DeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1025 if (D->getLanguage() == LinkageSpecDecl::lang_c) in VisitLinkageSpecDecl()
1028 assert(D->getLanguage() == LinkageSpecDecl::lang_cxx && in VisitLinkageSpecDecl()
/external/llvm-project/clang-tools-extra/modularize/
DModularize.cpp577 bool VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
584 case LinkageSpecDecl::lang_c: in VisitLinkageSpecDecl()
587 case LinkageSpecDecl::lang_cxx: in VisitLinkageSpecDecl()
766 bool VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/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()
/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()
/external/llvm-project/clang/include/clang/AST/
DDeclCXX.h2773 class LinkageSpecDecl : public Decl, public DeclContext {
2791 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
2795 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
2799 static LinkageSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2839 static DeclContext *castToDeclContext(const LinkageSpecDecl *D) { in castToDeclContext()
2840 return static_cast<DeclContext *>(const_cast<LinkageSpecDecl*>(D)); in castToDeclContext()
2843 static LinkageSpecDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
2844 return static_cast<LinkageSpecDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
DDeclBase.h52 class LinkageSpecDecl; variable
1689 friend class LinkageSpecDecl; variable
1931 const LinkageSpecDecl *getExternCContext() const;
DTextNodeDumper.h357 void VisitLinkageSpecDecl(const LinkageSpecDecl *D);
DJSONNodeDumper.h248 void VisitLinkageSpecDecl(const LinkageSpecDecl *LSD);
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp51 llvm::isa<LinkageSpecDecl>(Context)) in GetContexts()
/external/llvm-project/clang/tools/libclang/
DCursorVisitor.h235 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
/external/clang/tools/libclang/
DCursorVisitor.h234 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
/external/clang/lib/Index/
DIndexingContext.cpp204 if (isa<LinkageSpecDecl>(Parent) || isa<BlockDecl>(Parent)) in adjustParent()
/external/llvm-project/clang/lib/Tooling/Transformer/
DSourceCode.cpp255 if (llvm::isa<FunctionDecl>(D) || llvm::isa<LinkageSpecDecl>(D)) in getTerminators()
/external/llvm-project/clang-tools-extra/clangd/
DFindSymbols.cpp288 if (llvm::isa<LinkageSpecDecl>(D) || llvm::isa<ExportDecl>(D)) in shouldVisit()
/external/llvm-project/clang/lib/Index/
DUSRGeneration.cpp107 void VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
202 else if (isa<LinkageSpecDecl>(DC)) // Linkage specs are transparent in USRs. in VisitDeclContext()
DIndexingContext.cpp285 if (isa<LinkageSpecDecl>(Parent) || isa<BlockDecl>(Parent)) in adjustParent()

123