summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-03-09 18:07:08 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-03-09 18:07:08 (GMT)
commit8051d0cfdd4afcaaa8458926c807d471691dfb5e (patch)
treec4662316ba92eaf4d6ffbd9d06645fd4c6e85195 /src/namespacedef.cpp
parent2ddfaa1d80f702ad70073ac8721219935e1ab074 (diff)
downloadDoxygen-8051d0cfdd4afcaaa8458926c807d471691dfb5e.zip
Doxygen-8051d0cfdd4afcaaa8458926c807d471691dfb5e.tar.gz
Doxygen-8051d0cfdd4afcaaa8458926c807d471691dfb5e.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