Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DDeclCXX.h2331 class LinkageSpecDecl : public Decl, public DeclContext {
2358 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl() function
2365 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
2369 static LinkageSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2405 static DeclContext *castToDeclContext(const LinkageSpecDecl *D) { in castToDeclContext()
2406 return static_cast<DeclContext *>(const_cast<LinkageSpecDecl*>(D)); in castToDeclContext()
2408 static LinkageSpecDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
2409 return static_cast<LinkageSpecDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
DDeclBase.h36 class LinkageSpecDecl; variable
DRecursiveASTVisitor.h1343 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
/external/clang/lib/AST/
DDecl.cpp512 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineExternC()
513 if (SD->getLanguage() == LinkageSpecDecl::lang_c && !SD->hasBraces()) in isSingleLineExternC()
1650 LinkageSpecDecl::LanguageIDs ID) { in isLinkageSpecContext()
1653 return cast<LinkageSpecDecl>(DC)->getLanguage() == ID; in isLinkageSpecContext()
1660 static bool isInLanguageSpecContext(T *D, LinkageSpecDecl::LanguageIDs ID) { in isInLanguageSpecContext()
1665 return isInLanguageSpecContext(this, LinkageSpecDecl::lang_c); in isInExternCContext()
1669 return isInLanguageSpecContext(this, LinkageSpecDecl::lang_cxx); in isInExternCXXContext()
2276 return isInLanguageSpecContext(this, LinkageSpecDecl::lang_c); in isInExternCContext()
2280 return isInLanguageSpecContext(this, LinkageSpecDecl::lang_cxx); in isInExternCXXContext()
2369 if (isa<LinkageSpecDecl>(getDeclContext()) && in getBuiltinID()
[all …]
DDeclCXX.cpp1812 void LinkageSpecDecl::anchor() { } in anchor()
1814 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, in Create()
1820 return new (C) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces); in Create()
1823 LinkageSpecDecl *LinkageSpecDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
1824 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(LinkageSpecDecl)); in CreateDeserialized()
1825 return new (Mem) LinkageSpecDecl(0, SourceLocation(), SourceLocation(), in CreateDeserialized()
DDeclPrinter.cpp68 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
302 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
788 void DeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
790 if (D->getLanguage() == LinkageSpecDecl::lang_c) in VisitLinkageSpecDecl()
793 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()
DMicrosoftMangle.cpp181 if (const LinkageSpecDecl *Linkage = dyn_cast<LinkageSpecDecl>(DC)) in isInCLinkageSpecification()
182 return Linkage->getLanguage() == LinkageSpecDecl::lang_c; in isInCLinkageSpecification()
565 while (isa<LinkageSpecDecl>(DC)) in manglePostfix()
DASTDumper.cpp229 void VisitLinkageSpecDecl(const LinkageSpecDecl *D);
1142 void ASTDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1144 case LinkageSpecDecl::lang_c: OS << " C"; break; in VisitLinkageSpecDecl()
1145 case LinkageSpecDecl::lang_cxx: OS << " C++"; break; in VisitLinkageSpecDecl()
DItaniumMangle.cpp515 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.h1261 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
DCIndex.cpp1398 bool CursorVisitor::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp2800 void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { in EmitLinkageSpec()
2801 if (LSD->getLanguage() != LinkageSpecDecl::lang_c && in EmitLinkageSpec()
2802 LSD->getLanguage() != LinkageSpecDecl::lang_cxx) { in EmitLinkageSpec()
2943 EmitLinkageSpec(cast<LinkageSpecDecl>(D)); in EmitTopLevelDecl()
DCodeGenModule.h1033 void EmitLinkageSpec(const LinkageSpecDecl *D);
/external/clang/lib/Serialization/
DASTReaderDecl.cpp276 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
1037 void ASTDeclReader::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
1039 D->setLanguage((LinkageSpecDecl::LanguageIDs)Record[Idx++]); in VisitLinkageSpecDecl()
2248 D = LinkageSpecDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp102 void VisitLinkageSpecDecl(LinkageSpecDecl *D);
846 void ASTDeclWriter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
/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()
3137 if (const LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(DC)) in getFunctionSourceLocation()
3165 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.cpp5360 if (Ctx && isa<LinkageSpecDecl>(Ctx) && in CheckTemplateDeclScope()
5361 cast<LinkageSpecDecl>(Ctx)->getLanguage() != LinkageSpecDecl::lang_cxx) in CheckTemplateDeclScope()
5365 while (Ctx && isa<LinkageSpecDecl>(Ctx)) in CheckTemplateDeclScope()
DSemaDeclCXX.cpp10669 LinkageSpecDecl::LanguageIDs Language; in ActOnStartLinkageSpecification()
10671 Language = LinkageSpecDecl::lang_c; in ActOnStartLinkageSpecification()
10673 Language = LinkageSpecDecl::lang_cxx; in ActOnStartLinkageSpecification()
10681 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, in ActOnStartLinkageSpecification()
10698 LinkageSpecDecl* LSDecl = cast<LinkageSpecDecl>(LinkageSpec); in ActOnFinishLinkageSpecification()
DSemaDecl.cpp4001 while (isa<LinkageSpecDecl>(Cur)) in diagnoseQualifiedDeclaration()
9763 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
9764 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
9765 LinkageSpecDecl::lang_c)) { in AddKnownFunctionAttributes()