Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/Decl.cpp
Show First 20 Lines • Show All 1,533 Lines • ▼ Show 20 Lines | NamedDecl::ExplicitVisibilityKind EK = usesTypeVisibility(D) | ||||
? NamedDecl::VisibilityForType | ? NamedDecl::VisibilityForType | ||||
: NamedDecl::VisibilityForValue; | : NamedDecl::VisibilityForValue; | ||||
LVComputationKind CK(EK); | LVComputationKind CK(EK); | ||||
return getLVForDecl(D, D->getASTContext().getLangOpts().IgnoreXCOFFVisibility | return getLVForDecl(D, D->getASTContext().getLangOpts().IgnoreXCOFFVisibility | ||||
? CK.forLinkageOnly() | ? CK.forLinkageOnly() | ||||
: CK); | : CK); | ||||
} | } | ||||
Module *Decl::getOwningModuleForLinkage(bool IgnoreLinkage) const { | Module *Decl::getModuleAttachment(bool IgnoreLinkage) const { | ||||
if (isa<NamespaceDecl>(this)) | if (isa<NamespaceDecl>(this)) | ||||
// Namespaces never have module linkage. It is the entities within them | // External namespaces are always attached to the global module. | ||||
// that [may] do. | |||||
return nullptr; | return nullptr; | ||||
Module *M = getOwningModule(); | Module *M = getOwningModule(); | ||||
if (!M) | if (!M) | ||||
return nullptr; | return nullptr; | ||||
switch (M->Kind) { | switch (M->Kind) { | ||||
case Module::ModuleMapModule: | case Module::ModuleMapModule: | ||||
▲ Show 20 Lines • Show All 3,646 Lines • Show Last 20 Lines |