summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-09 18:07:08 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-09 18:07:08 (GMT)
commitfb91b752942b81dac21be5ad18bcb09fbafa711b (patch)
treec4662316ba92eaf4d6ffbd9d06645fd4c6e85195 /src/namespacedef.cpp
parentb43cd6311a712c01c2c8297fa00809730e504d70 (diff)
downloadDoxygen-fb91b752942b81dac21be5ad18bcb09fbafa711b.zip
Doxygen-fb91b752942b81dac21be5ad18bcb09fbafa711b.tar.gz
Doxygen-fb91b752942b81dac21be5ad18bcb09fbafa711b.tar.bz2
Release-1.5.5-20080309
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 2df94db..09dab2d 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -769,12 +769,19 @@ bool NamespaceDef::isLinkableInProject() const
int i = name().findRev("::");
if (i==-1) i=0; else i+=2;
static bool extractAnonNs = Config_getBool("EXTRACT_ANON_NSPACES");
- if (extractAnonNs && name().mid(i,20)=="anonymous_namespace{")
+ static bool showNamespaces = Config_getBool("SHOW_NAMESPACES");
+ if (extractAnonNs && // extract anonymous ns
+ name().mid(i,20)=="anonymous_namespace{" && // correct prefix
+ showNamespaces) // not disabled by config
{
return TRUE;
}
- return !name().isEmpty() && name().at(i)!='@' &&
- hasDocumentation() && !isReference() && !isHidden() && !isArtificial();
+ return !name().isEmpty() && name().at(i)!='@' && // not anonymous
+ hasDocumentation() && // documented
+ !isReference() && // not an external reference
+ !isHidden() && // not hidden
+ !isArtificial() && // or artificial
+ showNamespaces; // not disabled by config
}
bool NamespaceDef::isLinkable() const