From eaa619835d988fd8d64d31c09dcebf2f13ab8dfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 8 Jun 2020 22:48:00 +0200 Subject: [PATCH] documentation/doxygen: clarify a bunch of things. --- documentation/doxygen.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/documentation/doxygen.py b/documentation/doxygen.py index cc08685d..599c85ab 100755 --- a/documentation/doxygen.py +++ b/documentation/doxygen.py @@ -2657,6 +2657,8 @@ def parse_xml(state: State, xml: str): if compounddef_child.tag == 'innernamespace': namespace = Empty() namespace.url = symbol.url + # Use the full name if this is a file or group (where the + # hierarchy isn't implicit like with namespace or class) namespace.name = symbol.leaf_name if compound.kind == 'namespace' else symbol.name namespace.brief = symbol.brief namespace.deprecated = symbol.deprecated @@ -2669,6 +2671,8 @@ def parse_xml(state: State, xml: str): class_ = Empty() class_.kind = symbol.kind class_.url = symbol.url + # Use the full name if this is a file or group (where the + # hierarchy isn't implicit like with namespace or class) class_.name = symbol.leaf_name if compound.kind in ['namespace', 'class', 'struct', 'union'] else symbol.name class_.brief = symbol.brief class_.deprecated = symbol.deprecated @@ -2701,6 +2705,8 @@ def parse_xml(state: State, xml: str): class_ = Empty() class_.kind = symbol.kind class_.url = symbol.url + # Use only the leaf name if the base class has the same + # parent as this class class_.name = symbol.leaf_name if state.compounds[compound.id].parent and symbol.parent and symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name class_.brief = symbol.brief class_.templates = symbol.templates @@ -2725,6 +2731,8 @@ def parse_xml(state: State, xml: str): class_ = Empty() class_.kind = symbol.kind class_.url = symbol.url + # Use only the leaf name if the derived class has the same + # parent as this class class_.name = symbol.leaf_name if state.compounds[compound.id].parent and symbol.parent and symbol.parent.startswith(state.compounds[compound.id].parent) else symbol.name class_.brief = symbol.brief class_.templates = symbol.templates -- 2.30.2