From 719af2337faae26c33a68ed2e424a3afa67486b2 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 6 Jul 2024 17:39:23 +0300 Subject: [PATCH] Fix handling of multiple exception descriptions, support free form description. When there are multiple \throws entries in a function documentation, the second and further exception names were omitted from output and a combined description was associated with the first exception. Fix this by producing separate paragraphs, one per exception. Additionally, support free form exception description when the exception type is specified as "~". In this case, the exception name is not used, and the entry description is used to initialize the paragraph in the output. Updated test to verify these changes. --- test/doxygen/autodoc.gold | 6 +++++- test/doxygen/boost/example.hpp | 3 +++ xsl/doxygen/doxygen2boostbook.xsl | 36 ++++++++++++++++++------------- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/test/doxygen/autodoc.gold b/test/doxygen/autodoc.gold index 7ae50c8..8324a66 100644 --- a/test/doxygen/autodoc.gold +++ b/test/doxygen/autodoc.gold @@ -104,13 +104,17 @@ int foo2(); intintA function parameter intAnother + This is a test function. Link to class Link to class template This is a note. See Also:example::example and example_template i > j The answer - +std::runtime_error Some error description +std::bad_alloc Memory allocation error +Free form description of exception throwing + void