diff options
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 13 |
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 |