From d7dcdd15bef73b950006cbe049e1ba912d5f31c1 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Thu, 24 May 2012 19:38:51 +0000 Subject: [PATCH] Correctly identify constructors/destructors of class template specializations. [SVN r78602] --- test/doxygen/autodoc.gold | 6 +++++- test/doxygen/boost/example.hpp | 14 ++++++++++++++ xsl/doxygen/doxygen2boostbook.xsl | 13 ++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/test/doxygen/autodoc.gold b/test/doxygen/autodoc.gold index 8ff920b..af89c66 100644 --- a/test/doxygen/autodoc.gold +++ b/test/doxygen/autodoc.gold @@ -17,7 +17,11 @@ Embedded docbook list: Line 1 Line 2 void foo() {} -intintconst intconst intintintA function parameter intAnother +T *A constructor. A destructor. const specialization_test &An assignment operator. intintconst intconst intintintA function parameter intAnother This is a test function. Link to class Link to class template This is a note. diff --git a/test/doxygen/boost/example.hpp b/test/doxygen/boost/example.hpp index da5d36d..c1ce264 100644 --- a/test/doxygen/boost/example.hpp +++ b/test/doxygen/boost/example.hpp @@ -134,6 +134,20 @@ namespace example */ template void namespace_func_template(); + + template + struct specialization_test { + }; + + template + struct specialization_test { + /** A constructor. */ + specialization_test(); + /** A destructor. */ + ~specialization_test(); + /** An assignment operator. */ + specialization_test& operator=(const specialization_test&); + }; } #define EXAMPLE(m) The macro diff --git a/xsl/doxygen/doxygen2boostbook.xsl b/xsl/doxygen/doxygen2boostbook.xsl index da5a996..6c055e9 100644 --- a/xsl/doxygen/doxygen2boostbook.xsl +++ b/xsl/doxygen/doxygen2boostbook.xsl @@ -855,12 +855,23 @@ - + + + + + + + + + + + +