Amazing that I didn't come across this until now.
class_ = Empty()
class_.kind = symbol.kind
class_.url = symbol.url
- class_.name = symbol.leaf_name if symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name
+ class_.name = symbol.leaf_name if state.compounds[compound.id].parent and 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 if symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name
+ class_.name = symbol.leaf_name if state.compounds[compound.id].parent and 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
--- /dev/null
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8" />
+ <title>BaseOutsideANamespace 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" />
+</head>
+<body>
+<header><nav id="navigation">
+ <div class="m-container">
+ <div class="m-row">
+ <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Project</a>
+ </div>
+ </div>
+</nav></header>
+<main><article>
+ <div class="m-container m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-l-10 m-push-l-1">
+ <h1>
+ BaseOutsideANamespace <span class="m-thin">class</span>
+ </h1>
+ <p>A base class outside of a namespace.</p>
+ <section id="derived-classes">
+ <h2><a href="#derived-classes">Derived classes</a></h2>
+ <dl class="m-dox">
+ <dt>
+ class <a href="classDerivedOutsideANamespace.html" class="m-dox">DerivedOutsideANamespace</a>
+ </dt>
+ <dd>A derived class outside of a namespace.</dd>
+ </dl>
+ </section>
+ </div>
+ </div>
+ </div>
+</article></main>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8" />
+ <title>DerivedOutsideANamespace 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" />
+</head>
+<body>
+<header><nav id="navigation">
+ <div class="m-container">
+ <div class="m-row">
+ <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Project</a>
+ </div>
+ </div>
+</nav></header>
+<main><article>
+ <div class="m-container m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-l-10 m-push-l-1">
+ <h1>
+ DerivedOutsideANamespace <span class="m-thin">class</span>
+ </h1>
+ <p>A derived class outside of a namespace.</p>
+ <section id="base-classes">
+ <h2><a href="#base-classes">Base classes</a></h2>
+ <dl class="m-dox">
+ <dt>
+ class <a href="classBaseOutsideANamespace.html" class="m-dox">BaseOutsideANamespace</a>
+ </dt>
+ <dd>A base class outside of a namespace.</dd>
+ </dl>
+ </section>
+ </div>
+ </div>
+ </div>
+</article></main>
+</body>
+</html>
struct UndocumentedDerived: A {};
}
+
+/** @brief A base class outside of a namespace */
+class BaseOutsideANamespace {};
+
+/** @brief A derived class outside of a namespace */
+class DerivedOutsideANamespace: public BaseOutsideANamespace {};
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'))
+ self.assertEqual(*self.actual_expected_contents('classBaseOutsideANamespace.html'))
+ self.assertEqual(*self.actual_expected_contents('classDerivedOutsideANamespace.html'))