diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-02 18:49:52 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-02 18:49:52 (GMT) |
commit | 4372054e0b7af9c0cd1c1390859d8fef3581d8bb (patch) | |
tree | 32b033cf86b2de8a5f015fc0bd9f0d168fd66982 /src/definition.cpp | |
parent | 63d7b19df11eb55a30e4af8fa492ee464ff353f5 (diff) | |
download | Doxygen-4372054e0b7af9c0cd1c1390859d8fef3581d8bb.zip Doxygen-4372054e0b7af9c0cd1c1390859d8fef3581d8bb.tar.gz Doxygen-4372054e0b7af9c0cd1c1390859d8fef3581d8bb.tar.bz2 |
Improve handling of inline namespace members in LateX/RTF output
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 615506f..b719388 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -2137,7 +2137,7 @@ QCString DefinitionImpl::externalReference(const QCString &relPath) const return relPath; } -const QCString &DefinitionImpl::name() const +QCString DefinitionImpl::name() const { return m_impl->name; } @@ -2178,8 +2178,8 @@ void DefinitionImpl::writeSummaryLinks(OutputList &) const //--------------------------------------------------------------------------------- -DefinitionAliasImpl::DefinitionAliasImpl(Definition *def,const Definition *alias) - : m_def(def), m_symbolName(alias->_symbolName()) +DefinitionAliasImpl::DefinitionAliasImpl(Definition *def,const Definition *scope, const Definition *alias) + : m_def(def), m_scope(scope), m_symbolName(alias->_symbolName()) { } @@ -2198,6 +2198,26 @@ void DefinitionAliasImpl::deinit() removeFromMap(m_symbolName,m_def); } +QCString DefinitionAliasImpl::qualifiedName() const +{ + //printf("start %s::qualifiedName() localName=%s\n",name().data(),m_impl->localName.data()); + if (m_scope==0) + { + return m_def->localName(); + } + else + { + return m_scope->qualifiedName()+ + getLanguageSpecificSeparator(m_scope->getLanguage())+ + m_def->localName(); + } +} + +QCString DefinitionAliasImpl::name() const +{ + return qualifiedName(); +} + //--------------------------------------------------------------------------------- Definition *toDefinition(DefinitionMutable *dm) |