diff options
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 4d53a12..22ca7a3 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -752,6 +752,17 @@ QCString NamespaceDef::displayName() const return result; } +QCString NamespaceDef::localName() const +{ + QCString result=name(); + int i=result.findRev("::"); + if (i!=-1) + { + result=result.mid(i+2); + } + return result; +} + void NamespaceDef::combineUsingRelations() { if (visited) return; // already done @@ -959,10 +970,9 @@ bool NamespaceDef::isLinkableInProject() const int i = name().findRev("::"); if (i==-1) i=0; else i+=2; static bool extractAnonNs = Config_getBool("EXTRACT_ANON_NSPACES"); - 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 + name().mid(i,20)=="anonymous_namespace{" // correct prefix + ) // not disabled by config { return TRUE; } @@ -970,8 +980,7 @@ bool NamespaceDef::isLinkableInProject() const (hasDocumentation() || getLanguage()==SrcLangExt_CSharp) && // documented !isReference() && // not an external reference !isHidden() && // not hidden - !isArtificial() && // or artificial - showNamespaces; // not disabled by config + !isArtificial(); // or artificial } bool NamespaceDef::isLinkable() const |