Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DDeclCXX.h2348 class LinkageSpecDecl : public Decl, public DeclContext {
2368 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
2375 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
2379 static LinkageSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2409 static DeclContext *castToDeclContext(const LinkageSpecDecl *D) {
2410 return static_cast<DeclContext *>(const_cast<LinkageSpecDecl*>(D));
2412 static LinkageSpecDecl *castFromDeclContext(const DeclContext *DC) {
2413 return static_cast<LinkageSpecDecl *>(const_cast<DeclContext*>(DC));
DDeclBase.h34 class LinkageSpecDecl; variable
DRecursiveASTVisitor.h1301 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
/external/clang/lib/AST/
DDeclCXX.cpp1780 void LinkageSpecDecl::anchor() { } in anchor()
1782 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, in Create()
1788 return new (C) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, RBraceLoc); in Create()
1791 LinkageSpecDecl *LinkageSpecDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
1792 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(LinkageSpecDecl)); in CreateDeserialized()
1793 return new (Mem) LinkageSpecDecl(0, SourceLocation(), SourceLocation(), in CreateDeserialized()
DDeclPrinter.cpp68 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
299 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
768 void DeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
770 if (D->getLanguage() == LinkageSpecDecl::lang_c) in VisitLinkageSpecDecl()
773 assert(D->getLanguage() == LinkageSpecDecl::lang_cxx && in VisitLinkageSpecDecl()
DDumpXML.cpp423 void visitLinkageSpecDeclAttrs(LinkageSpecDecl *D) { in visitLinkageSpecDeclAttrs()
426 case LinkageSpecDecl::lang_c: lang = "C"; break; in visitLinkageSpecDeclAttrs()
427 case LinkageSpecDecl::lang_cxx: lang = "C++"; break; in visitLinkageSpecDeclAttrs()
431 void visitLinkageSpecDeclAsContext(LinkageSpecDecl *D) { in visitLinkageSpecDeclAsContext()
DDeclBase.cpp806 return cast<LinkageSpecDecl>(DC)->getLanguage() in isExternCContext()
807 == LinkageSpecDecl::lang_c; in isExternCContext()
817 return cast<LinkageSpecDecl>(DC)->getLanguage() in isExternCXXContext()
818 == LinkageSpecDecl::lang_cxx; in isExternCXXContext()
DMicrosoftMangle.cpp167 if (const LinkageSpecDecl *Linkage = dyn_cast<LinkageSpecDecl>(DC)) in isInCLinkageSpecification()
168 return Linkage->getLanguage() == LinkageSpecDecl::lang_c; in isInCLinkageSpecification()
555 while (isa<LinkageSpecDecl>(DC)) in manglePostfix()
DASTDumper.cpp224 void VisitLinkageSpecDecl(const LinkageSpecDecl *D);
1068 void ASTDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1070 case LinkageSpecDecl::lang_c: OS << " C"; break; in VisitLinkageSpecDecl()
1071 case LinkageSpecDecl::lang_cxx: OS << " C++"; break; in VisitLinkageSpecDecl()
DDecl.cpp2160 if (isa<LinkageSpecDecl>(getDeclContext()) && in getBuiltinID()
2161 cast<LinkageSpecDecl>(getDeclContext())->getLanguage() in getBuiltinID()
2162 == LinkageSpecDecl::lang_c && in getBuiltinID()
DItaniumMangle.cpp485 while (isa<LinkageSpecDecl>(DC)) { in IgnoreLinkageSpecDecls()
/external/clang/tools/libclang/
DCursorVisitor.h231 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
DCIndexUSRs.cpp87 void VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
DRecursiveASTVisitor.h1237 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
DCIndex.cpp1381 bool CursorVisitor::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp260 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
991 void ASTDeclReader::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
993 D->setLanguage((LinkageSpecDecl::LanguageIDs)Record[Idx++]); in VisitLinkageSpecDecl()
1988 D = LinkageSpecDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp97 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
820 void ASTDeclWriter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp2695 void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { in EmitLinkageSpec()
2696 if (LSD->getLanguage() != LinkageSpecDecl::lang_c && in EmitLinkageSpec()
2697 LSD->getLanguage() != LinkageSpecDecl::lang_cxx) { in EmitLinkageSpec()
2826 EmitLinkageSpec(cast<LinkageSpecDecl>(D)); in EmitTopLevelDecl()
DCodeGenModule.h972 void EmitLinkageSpec(const LinkageSpecDecl *D);
/external/clang/lib/Rewrite/Frontend/
DRewriteModernObjC.cpp364 void RewriteLinkageSpec(LinkageSpecDecl *LSD);
736 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
1214 RewriteModernObjC::RewriteLinkageSpec(LinkageSpecDecl *LSD) { in RewriteLinkageSpec()
3133 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in getFunctionSourceLocation()
3161 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in RewriteLineDirective()
DRewriteObjC.cpp676 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
/external/clang/lib/Sema/
DSemaTemplate.cpp4903 if (Ctx && isa<LinkageSpecDecl>(Ctx) && in CheckTemplateDeclScope()
4904 cast<LinkageSpecDecl>(Ctx)->getLanguage() != LinkageSpecDecl::lang_cxx) in CheckTemplateDeclScope()
4908 while (Ctx && isa<LinkageSpecDecl>(Ctx)) in CheckTemplateDeclScope()
DSemaDeclCXX.cpp10166 LinkageSpecDecl::LanguageIDs Language; in ActOnStartLinkageSpecification()
10168 Language = LinkageSpecDecl::lang_c; in ActOnStartLinkageSpecification()
10170 Language = LinkageSpecDecl::lang_cxx; in ActOnStartLinkageSpecification()
10178 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, in ActOnStartLinkageSpecification()
10194 LinkageSpecDecl* LSDecl = cast<LinkageSpecDecl>(LinkageSpec); in ActOnFinishLinkageSpecification()
DSemaDecl.cpp3926 while (isa<LinkageSpecDecl>(Cur)) in diagnoseQualifiedDeclaration()
9037 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
9038 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
9039 LinkageSpecDecl::lang_c)) { in AddKnownFunctionAttributes()