class_ = Empty()
class_.kind = symbol.kind
class_.url = symbol.url
- class_.name = symbol.leaf_name
+ class_.name = symbol.leaf_name if symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name
class_.brief = symbol.brief
class_.templates = symbol.templates
class_.is_deprecated = symbol.is_deprecated
class_ = Empty()
class_.kind = symbol.kind
class_.url = symbol.url
- class_.name = symbol.leaf_name
+ class_.name = symbol.leaf_name if symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name
class_.brief = symbol.brief
class_.templates = symbol.templates
class_.is_deprecated = symbol.is_deprecated
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>ProtectedBase class | My Project</title>
+ <title>Another::ProtectedBase class | My Project</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
<link rel="stylesheet" href="m-dark+doxygen.compiled.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>
- ProtectedBase <span class="m-thin">class</span>
+ <span class="m-breadcrumb"><a href="namespaceAnother.html">Another</a>::</span>ProtectedBase <span class="m-thin">class</span>
</h1>
- <p>Protected base, should list a derived, but w/o any label.</p>
+ <p>Protected base, should list a fully-qualified derived, but w/o any label.</p>
<section id="derived-classes">
<h2><a href="#derived-classes">Derived classes</a></h3>
<dl class="m-dox">
<dt>
- class <a href="classA.html" class="m-dox">A</a>
+ class <a href="classNamespace_1_1A.html" class="m-dox">Namespace::A</a>
</dt>
<dd>A class.</dd>
</dl>
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>A class | My Project</title>
+ <title>Namespace::A class | My Project</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
<link rel="stylesheet" href="m-dark+doxygen.compiled.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>
- A <span class="m-thin">class</span>
+ <span class="m-breadcrumb"><a href="namespaceNamespace.html">Namespace</a>::</span>A <span class="m-thin">class</span>
</h1>
<p>A class.</p>
-<p>Should list one protected base and one virtual base, one derived class.</p>
+<p>Should list one protected base (fully qualified) and one virtual base (omitting the common namespace), one derived class (fully qualified).</p>
<section id="base-classes">
<h2><a href="#base-classes">Base classes</a></h3>
<dl class="m-dox">
<dt>
- class <a href="classProtectedBase.html" class="m-dox">ProtectedBase</a> <span class="m-label m-flat m-warning">protected</span>
+ class <a href="classAnother_1_1ProtectedBase.html" class="m-dox">Another::ProtectedBase</a> <span class="m-label m-flat m-warning">protected</span>
</dt>
- <dd>Protected base, should list a derived, but w/o any label.</dd>
+ <dd>Protected base, should list a fully-qualified derived, but w/o any label.</dd>
<dt>
- class <a href="classVirtualBase.html" class="m-dox">VirtualBase</a> <span class="m-label m-flat m-warning">virtual</span>
+ class <a href="classNamespace_1_1VirtualBase.html" class="m-dox">VirtualBase</a> <span class="m-label m-flat m-warning">virtual</span>
</dt>
- <dd>Virtual base, should list a derived, but w/o any label.</dd>
+ <dd>Virtual base, should list a derived (omitting the common namespace), but w/o any label.</dd>
</dl>
</section>
<section id="derived-classes">
<h2><a href="#derived-classes">Derived classes</a></h3>
<dl class="m-dox">
<dt>
- class <a href="classDerived.html" class="m-dox">Derived</a>
+ class <a href="classAnother_1_1Derived.html" class="m-dox">Another::Derived</a>
</dt>
<dd>A derived class.</dd>
</dl>
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>PrivateBase class | My Project</title>
+ <title>Namespace::PrivateBase class | My Project</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
<link rel="stylesheet" href="m-dark+doxygen.compiled.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>
- PrivateBase <span class="m-thin">class</span>
+ <span class="m-breadcrumb"><a href="namespaceNamespace.html">Namespace</a>::</span>PrivateBase <span class="m-thin">class</span>
</h1>
<p>Private base class, should not list any derived.</p>
</div>
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>VirtualBase class | My Project</title>
+ <title>Namespace::VirtualBase class | My Project</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
<link rel="stylesheet" href="m-dark+doxygen.compiled.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>
- VirtualBase <span class="m-thin">class</span>
+ <span class="m-breadcrumb"><a href="namespaceNamespace.html">Namespace</a>::</span>VirtualBase <span class="m-thin">class</span>
</h1>
- <p>Virtual base, should list a derived, but w/o any label.</p>
+ <p>Virtual base, should list a derived (omitting the common namespace), but w/o any label.</p>
<section id="derived-classes">
<h2><a href="#derived-classes">Derived classes</a></h3>
<dl class="m-dox">
<dt>
- class <a href="classA.html" class="m-dox">A</a>
+ class <a href="classNamespace_1_1A.html" class="m-dox">A</a>
</dt>
<dd>A class.</dd>
</dl>
+namespace Namespace {
+
/** @brief Private base class, should not list any derived */
class PrivateBase {};
-/** @brief Protected base, should list a derived, but w/o any label */
+}
+
+namespace Another {
+
+/** @brief Protected base, should list a fully-qualified derived, but w/o any label */
class ProtectedBase {};
+}
+
+namespace Namespace {
+
class UndocumentedBase {};
-/** @brief Virtual base, should list a derived, but w/o any label */
+/** @brief Virtual base, should list a derived (omitting the common namespace), but w/o any label */
class VirtualBase {};
/**
@brief A class
-Should list one protected base and one virtual base, one derived class.
+Should list one protected base (fully qualified) and one virtual base (omitting
+the common namespace), one derived class (fully qualified).
*/
-class A: PrivateBase, protected ProtectedBase, public UndocumentedBase, public virtual VirtualBase {};
+class A: PrivateBase, protected Another::ProtectedBase, public UndocumentedBase, public virtual VirtualBase {};
+
+}
+
+namespace Another {
/** @brief A derived class */
-class Derived: public A {};
+class Derived: public Namespace::A {};
+
+}
+
+namespace Namespace {
struct UndocumentedDerived: A {};
+
+}
def test(self):
self.run_dox2html5(wildcard='*.xml')
- self.assertEqual(*self.actual_expected_contents('classA.html'))
- self.assertEqual(*self.actual_expected_contents('classPrivateBase.html'))
- self.assertEqual(*self.actual_expected_contents('classProtectedBase.html'))
- self.assertEqual(*self.actual_expected_contents('classVirtualBase.html'))
+ self.assertEqual(*self.actual_expected_contents('classNamespace_1_1A.html'))
+ self.assertEqual(*self.actual_expected_contents('classNamespace_1_1PrivateBase.html'))
+ self.assertEqual(*self.actual_expected_contents('classAnother_1_1ProtectedBase.html'))
+ self.assertEqual(*self.actual_expected_contents('classNamespace_1_1VirtualBase.html'))