From 61ca6ef7d9813b9feb3aac45fce0e0b8f0f83e44 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 4 May 2024 20:42:06 +0300 Subject: [PATCH] Fix missing members and functions in named groups in Doxygen output. Previously, class members and free functions in sectiondef with kind="user-defined" would be stripped from HTML output, making function grouping effectively non-functional. This commit fixes this by converting such sectiondefs to either method-group or free-function-group in BoostBook output, depending on whether the grouping is within a class or namespace. Additionally, previously constructors, destructors and assignment operators were not allowed to be inside method-groups, which were another reason for these members to be stripped from the output. This commit allows these members in member-groups and modifies DTD accordingly. Also, this fixes duplicate constructors, destructors and assignment operators generated after the sections for public, private and protected member functions. This was due to applying XSL templates twice - once when generating method-group, and then after the method-group. --- dtd/boostbook.dtd | 2 +- xsl/doxygen/doxygen2boostbook.xsl | 49 +++++++++++++++++++++---------- xsl/function.xsl | 4 +-- 3 files changed, 37 insertions(+), 18 deletions(-) diff --git a/dtd/boostbook.dtd b/dtd/boostbook.dtd index bd4c3f8..7ae9b11 100644 --- a/dtd/boostbook.dtd +++ b/dtd/boostbook.dtd @@ -240,7 +240,7 @@ - + diff --git a/xsl/doxygen/doxygen2boostbook.xsl b/xsl/doxygen/doxygen2boostbook.xsl index 097a0fd..122a032 100644 --- a/xsl/doxygen/doxygen2boostbook.xsl +++ b/xsl/doxygen/doxygen2boostbook.xsl @@ -788,7 +788,6 @@ - @@ -800,7 +799,6 @@ - @@ -819,7 +817,6 @@ - @@ -870,9 +867,37 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + - - - + - - - + diff --git a/xsl/function.xsl b/xsl/function.xsl index ab38093..c77cd4d 100644 --- a/xsl/function.xsl +++ b/xsl/function.xsl @@ -1133,7 +1133,7 @@ - @@ -1161,7 +1161,7 @@ -