From f5ed5051c0754f9c7e0e5556114e173016d7f984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 9 Feb 2018 23:11:38 +0100 Subject: Make it possible to list namespace members in file scope for XML output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For better consistency with the HTML output, where each file documentation lists (and links to) all members of given namespace. This also makes it possible to be consistent with the HTML output in case a namespace is not documented and thus all its member detailed docs should be put into corresponding file docs instead. In order to be backwards compatible and avoid breaking stuff for existing users of the XML output, this is controlled by a new XML_NAMESPACE_MEMBERS_IN_FILE_SCOPE configuration option that defaults to NO. Note that this, unlike the HTML output, will put the whole detailed docs into the file scope instead of just listing them. It's up to the user of the XML output to deduplicate this information. It can be done for example by comparing member ID prefixes with compound ID -- íf different, the detailed docs are already somewhere else. --- src/config.xml | 9 +++++ src/xmlgen.cpp | 4 +- ...xml__namespace__members__in__file__scope_8h.xml | 12 ++++++ .../072_no_xml_namespace_members_in_file_scope.h | 16 ++++++++ ...xml__namespace__members__in__file__scope_8h.xml | 43 ++++++++++++++++++++++ testing/073_xml_namespace_members_in_file_scope.h | 17 +++++++++ 6 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 testing/072/072__no__xml__namespace__members__in__file__scope_8h.xml create mode 100644 testing/072_no_xml_namespace_members_in_file_scope.h create mode 100644 testing/073/073__xml__namespace__members__in__file__scope_8h.xml create mode 100644 testing/073_xml_namespace_members_in_file_scope.h diff --git a/src/config.xml b/src/config.xml index 38dfefb..2c9212a 100644 --- a/src/config.xml +++ b/src/config.xml @@ -2881,6 +2881,15 @@ or ]]> + -