From 3d2c61d79baf0afecacf75ba52731201946ae2b2 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sun, 16 Oct 2011 17:32:17 +0000 Subject: [PATCH] Better handling of tparam. [SVN r74982] --- test/doxygen/Jamfile.v2 | 3 ++- test/doxygen/autodoc.gold | 6 +++++- test/doxygen/boost/example.hpp | 8 ++++++++ xsl/function.xsl | 33 +++++++++++++++++++++++++++++++++ xsl/template.xsl | 5 ++++- xsl/type.xsl | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 84 insertions(+), 3 deletions(-) diff --git a/test/doxygen/Jamfile.v2 b/test/doxygen/Jamfile.v2 index df7c669..d9f34f0 100644 --- a/test/doxygen/Jamfile.v2 +++ b/test/doxygen/Jamfile.v2 @@ -3,7 +3,8 @@ # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -import doxygen ; +using boostbook ; +using doxygen ; import os ; doxygen autodoc diff --git a/test/doxygen/autodoc.gold b/test/doxygen/autodoc.gold index 8a75766..e0b739b 100644 --- a/test/doxygen/autodoc.gold +++ b/test/doxygen/autodoc.gold @@ -22,4 +22,8 @@ Line 1 This is a test function. Link to class Link to class template This is a note. See Also:example::example and example_template -i > jThe answer Documentation for macro example. +i > jThe answer voidTesting a function template. +Documentation for macro example. diff --git a/test/doxygen/boost/example.hpp b/test/doxygen/boost/example.hpp index 949d4a0..b85eaaf 100644 --- a/test/doxygen/boost/example.hpp +++ b/test/doxygen/boost/example.hpp @@ -114,6 +114,14 @@ namespace example * \see example::example and example_template */ int namespace_func(int i, int j); + + /** + * Testing a function template. + * \tparam TypeParameter A template parameter + * \tparam NonTypeParameter This is a non-type template parameter + */ + template + void namespace_func_template(); } #define EXAMPLE(m) The macro diff --git a/xsl/function.xsl b/xsl/function.xsl index b5c5b8e..edba8ed 100644 --- a/xsl/function.xsl +++ b/xsl/function.xsl @@ -803,6 +803,8 @@ @@ -839,6 +841,37 @@ + + + + Template Parameters: + + + + list-presentation="table" + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/template.xsl b/xsl/template.xsl index eee8439..2e7d609 100644 --- a/xsl/template.xsl +++ b/xsl/template.xsl @@ -8,6 +8,9 @@ --> + + + @@ -235,7 +238,7 @@ - + diff --git a/xsl/type.xsl b/xsl/type.xsl index ce6d1df..58d7ddc 100644 --- a/xsl/type.xsl +++ b/xsl/type.xsl @@ -1191,6 +1191,38 @@ Unknown type element "" in type.display.na + + + + Template Parameters: + + + + list-presentation="table" + + + + + + + + + + + + + + + + + + + + +