/external/clang/include/clang/AST/ |
D | DeclCXX.h | 2331 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()
|
D | DeclBase.h | 36 class LinkageSpecDecl; variable
|
D | RecursiveASTVisitor.h | 1343 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
|
/external/clang/lib/AST/ |
D | Decl.cpp | 512 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 …]
|
D | DeclCXX.cpp | 1812 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()
|
D | DeclPrinter.cpp | 68 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()
|
D | DumpXML.cpp | 423 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()
|
D | MicrosoftMangle.cpp | 181 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()
|
D | ASTDumper.cpp | 229 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()
|
D | ItaniumMangle.cpp | 515 while (isa<LinkageSpecDecl>(DC)) { in IgnoreLinkageSpecDecls()
|
/external/clang/tools/libclang/ |
D | CursorVisitor.h | 231 bool VisitLinkageSpecDecl(LinkageSpecDecl *D);
|
D | CIndexUSRs.cpp | 87 void VisitLinkageSpecDecl(const LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
|
D | RecursiveASTVisitor.h | 1261 DEF_TRAVERSE_DECL(LinkageSpecDecl, { })
|
D | CIndex.cpp | 1398 bool CursorVisitor::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 2800 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()
|
D | CodeGenModule.h | 1033 void EmitLinkageSpec(const LinkageSpecDecl *D);
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 276 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()
|
D | ASTWriterDecl.cpp | 102 void VisitLinkageSpecDecl(LinkageSpecDecl *D); 846 void ASTDeclWriter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { in VisitLinkageSpecDecl()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteModernObjC.cpp | 364 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()
|
D | RewriteObjC.cpp | 676 } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { in HandleTopLevelSingleDecl()
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 5360 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()
|
D | SemaDeclCXX.cpp | 10669 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()
|
D | SemaDecl.cpp | 4001 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()
|