clang 17.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Linkage.h"
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) |
LinkageInfo LinkageComputer::computeLVForDecl | ( | const NamedDecl * | D, |
LVComputationKind | computation, | ||
bool | IgnoreVarTypeLinkage = false |
||
) |
Definition at line 1413 of file Decl.cpp.
References clang::Decl::getASTContext(), clang::Decl::getDeclContext(), getExternalLinkageFor(), getInternalLinkageFor(), clang::Decl::getKind(), clang::ASTContext::getLangOpts(), getLVForDecl(), clang::DeclContext::getRedeclContext(), clang::Decl::hasAttr(), 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().
LinkageInfo LinkageComputer::computeTypeLinkageInfo | ( | const Type * | T | ) |
Definition at line 4122 of file Type.cpp.
References computeTypeLinkageInfo(), clang::LinkageInfo::external(), getDeclLinkageAndVisibility(), clang::Type::getTypeClass(), clang::Type::isInstantiationDependentType(), and clang::LinkageInfo::merge().
Referenced by computeTypeLinkageInfo(), getTypeLinkageAndVisibility(), and clang::Type::isLinkageValid().
|
inline |
Definition at line 153 of file Linkage.h.
References computeTypeLinkageInfo(), and clang::QualType::getTypePtr().
LinkageInfo LinkageComputer::getDeclLinkageAndVisibility | ( | const NamedDecl * | D | ) |
Definition at line 1577 of file Decl.cpp.
References clang::LVComputationKind::forLinkageOnly(), clang::Decl::getASTContext(), clang::ASTContext::getLangOpts(), getLVForDecl(), usesTypeVisibility(), clang::NamedDecl::VisibilityForType, and clang::NamedDecl::VisibilityForValue.
Referenced by computeTypeLinkageInfo(), and clang::NamedDecl::getLinkageAndVisibility().
LinkageInfo LinkageComputer::getLVForDecl | ( | const NamedDecl * | D, |
LVComputationKind | computation | ||
) |
getLVForDecl - Get the linkage and visibility for the given declaration.
Definition at line 1531 of file Decl.cpp.
References computeLVForDecl(), clang::DefaultVisibility, clang::Decl::getASTContext(), clang::Decl::getCachedLinkage(), getInternalLinkageFor(), clang::ASTContext::getLangOpts(), clang::LinkageInfo::getLinkage(), clang::Decl::hasAttr(), clang::Decl::hasCachedLinkage(), clang::LVComputationKind::IgnoreAllVisibility, clang::Decl::redecls(), and clang::Decl::setCachedLinkage().
Referenced by computeLVForDecl(), getDeclLinkageAndVisibility(), and clang::NamedDecl::getLinkageInternal().
LinkageInfo LinkageComputer::getTypeLinkageAndVisibility | ( | const Type * | T | ) |
Definition at line 4209 of file Type.cpp.
References computeTypeLinkageInfo(), clang::Type::getCanonicalTypeInternal(), clang::Type::getLinkage(), clang::LinkageInfo::getLinkage(), and clang::Type::isCanonicalUnqualified().
Referenced by clang::Type::getLinkageAndVisibility(), and getTypeLinkageAndVisibility().
|
inline |
Definition at line 160 of file Linkage.h.
References getTypeLinkageAndVisibility(), and clang::QualType::getTypePtr().