clang: clang::LinkageComputer Class Reference (original) (raw)
#include "[/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Linkage.h](lib%5F2AST%5F2Linkage%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
LinkageInfo | computeLVForDecl (const NamedDecl *D, LVComputationKind computation, bool IgnoreVarTypeLinkage=false) |
LinkageInfo | getLVForDecl (const NamedDecl *D, LVComputationKind computation) |
getLVForDecl - Get the linkage and visibility for the given declaration. | |
LinkageInfo | computeTypeLinkageInfo (const Type *T) |
LinkageInfo | computeTypeLinkageInfo (QualType T) |
LinkageInfo | getDeclLinkageAndVisibility (const NamedDecl *D) |
LinkageInfo | getTypeLinkageAndVisibility (const Type *T) |
LinkageInfo | getTypeLinkageAndVisibility (QualType T) |
Definition at line 77 of file Linkage.h.
◆ computeLVForDecl()
Definition at line 1450 of file Decl.cpp.
References D, clang::Decl::getASTContext(), clang::Decl::getDeclContext(), getExternalLinkageFor(), clang::Decl::getKind(), clang::ASTContext::getLangOpts(), getLVForDecl(), clang::DeclContext::getRedeclContext(), clang::Decl::hasAttr(), clang::LinkageInfo::internal(), clang::DeclContext::isFileContext(), clang::DeclContext::isFunctionOrMethod(), clang::DeclContext::isRecord(), clang::LinkageInfo::merge(), clang::LinkageInfo::none(), and clang::LinkageInfo::visible_none().
Referenced by getLVForDecl(), and clang::NamedDecl::isLinkageValid().
◆ computeTypeLinkageInfo() [1/2]
◆ computeTypeLinkageInfo() [2/2]
◆ getDeclLinkageAndVisibility()
◆ getLVForDecl()
getLVForDecl - Get the linkage and visibility for the given declaration.
Definition at line 1568 of file Decl.cpp.
References computeLVForDecl(), D, clang::DefaultVisibility, clang::Decl::getASTContext(), clang::Decl::getCachedLinkage(), clang::ASTContext::getLangOpts(), clang::LinkageInfo::getLinkage(), clang::Decl::hasAttr(), clang::Decl::hasCachedLinkage(), clang::LVComputationKind::IgnoreAllVisibility, clang::LinkageInfo::internal(), clang::Decl::redecls(), clang::Decl::setCachedLinkage(), and clang::T.
Referenced by computeLVForDecl(), getDeclLinkageAndVisibility(), and clang::NamedDecl::getLinkageInternal().
◆ getTypeLinkageAndVisibility() [1/2]
◆ getTypeLinkageAndVisibility() [2/2]
The documentation for this class was generated from the following files:
- lib/AST/Linkage.h
- lib/AST/APValue.cpp
- lib/AST/Decl.cpp
- lib/AST/Type.cpp