Home
last modified time | relevance | path

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

/external/lldb/source/Expression/
DASTStructExtractor.cpp124 LinkageSpecDecl *linkage_spec_decl = dyn_cast<LinkageSpecDecl>(D); in ExtractFromTopLevelDecl()
DASTResultSynthesizer.cpp79 if (LinkageSpecDecl *linkage_spec_decl = dyn_cast<LinkageSpecDecl>(D)) in TransformTopLevelDecl()
/external/clang/include/clang/AST/
DDeclCXX.h2444 class LinkageSpecDecl : public Decl, public DeclContext {
2471 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl() function
2478 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
2482 static LinkageSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2518 static DeclContext *castToDeclContext(const LinkageSpecDecl *D) { in castToDeclContext()
2519 return static_cast<DeclContext *>(const_cast<LinkageSpecDecl*>(D)); in castToDeclContext()
2521 static LinkageSpecDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
2522 return static_cast<LinkageSpecDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
DDeclBase.h38 class LinkageSpecDecl; variable
DDataRecursiveASTVisitor.h1261 DEF_TRAVERSE_DECL(LinkageSpecDecl, {})
DRecursiveASTVisitor.h1333 DEF_TRAVERSE_DECL(LinkageSpecDecl, {})
/external/clang/lib/AST/
DDeclPrinter.cpp68 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
293 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
793 void DeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
795 if (D->getLanguage() == LinkageSpecDecl::lang_c) in VisitLinkageSpecDecl()
798 assert(D->getLanguage() == LinkageSpecDecl::lang_cxx && in VisitLinkageSpecDecl()
DDeclCXX.cpp1889 void LinkageSpecDecl::anchor() { } in anchor()
1891 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, in Create()
1897 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces); in Create()
1900 LinkageSpecDecl *LinkageSpecDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
1902 return new (C, ID) LinkageSpecDecl(nullptr, SourceLocation(), in CreateDeserialized()
DDeclBase.cpp856 LinkageSpecDecl::LanguageIDs ID) { in isLinkageSpecContext()
859 return cast<LinkageSpecDecl>(DC)->getLanguage() == ID; in isLinkageSpecContext()
866 return isLinkageSpecContext(this, clang::LinkageSpecDecl::lang_c); in isExternCContext()
870 return isLinkageSpecContext(this, clang::LinkageSpecDecl::lang_cxx); in isExternCXXContext()
DASTDumper.cpp284 void VisitLinkageSpecDecl(const LinkageSpecDecl *D);
1258 void ASTDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1260 case LinkageSpecDecl::lang_c: OS << " C"; break; in VisitLinkageSpecDecl()
1261 case LinkageSpecDecl::lang_cxx: OS << " C++"; break; in VisitLinkageSpecDecl()
DDecl.cpp560 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
2554 const LinkageSpecDecl *LinkageDecl = dyn_cast<LinkageSpecDecl>( in getBuiltinID()
2560 if (!LinkageDecl || LinkageDecl->getLanguage() != LinkageSpecDecl::lang_c) in getBuiltinID()
DItaniumMangle.cpp512 while (isa<LinkageSpecDecl>(DC)) { in IgnoreLinkageSpecDecls()
/external/clang/tools/libclang/
DCursorVisitor.h231 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
DCIndex.cpp1397 bool CursorVisitor::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/Index/
DUSRGeneration.cpp93 void VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/Rewrite/Frontend/
DRewriteModernObjC.cpp379 void RewriteLinkageSpec(LinkageSpecDecl *LSD);
757 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
1228 RewriteModernObjC::RewriteLinkageSpec(LinkageSpecDecl *LSD) { in RewriteLinkageSpec()
3102 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in getFunctionSourceLocation()
3130 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in RewriteLineDirective()
DRewriteObjC.cpp683 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp3051 void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { in EmitLinkageSpec()
3052 if (LSD->getLanguage() != LinkageSpecDecl::lang_c && in EmitLinkageSpec()
3053 LSD->getLanguage() != LinkageSpecDecl::lang_cxx) { in EmitLinkageSpec()
3188 EmitLinkageSpec(cast<LinkageSpecDecl>(D)); in EmitTopLevelDecl()
DCodeGenModule.h1073 void EmitLinkageSpec(const LinkageSpecDecl *D);
/external/clang/lib/Sema/
DSemaDecl.cpp1655 LinkageSpecDecl *CLinkageDecl = in LazilyCreateBuiltin()
1656 LinkageSpecDecl::Create(Context, Parent, Loc, Loc, in LazilyCreateBuiltin()
1657 LinkageSpecDecl::lang_c, false); in LazilyCreateBuiltin()
4287 while (isa<LinkageSpecDecl>(Cur) || isa<CapturedDecl>(Cur)) in diagnoseQualifiedDeclaration()
5194 while (!DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) in adjustContextForLocalExternDecl()
10433 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
10434 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
10435 LinkageSpecDecl::lang_c)) { in AddKnownFunctionAttributes()
13333 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext()
13335 case LinkageSpecDecl::lang_c: in checkModuleImportContext()
[all …]
DSemaDeclCXX.cpp11254 LinkageSpecDecl::LanguageIDs Language; in ActOnStartLinkageSpecification()
11256 Language = LinkageSpecDecl::lang_c; in ActOnStartLinkageSpecification()
11258 Language = LinkageSpecDecl::lang_cxx; in ActOnStartLinkageSpecification()
11267 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, ExternLoc, in ActOnStartLinkageSpecification()
11283 LinkageSpecDecl* LSDecl = cast<LinkageSpecDecl>(LinkageSpec); in ActOnFinishLinkageSpecification()
DSemaTemplate.cpp5575 while (Ctx && isa<LinkageSpecDecl>(Ctx)) in CheckTemplateDeclScope()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp290 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
1117 void ASTDeclReader::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1119 D->setLanguage((LinkageSpecDecl::LanguageIDs)Record[Idx++]); in VisitLinkageSpecDecl()
2637 D = LinkageSpecDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp102 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
874 void ASTDeclWriter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()