Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58030 - trunk/tools/boostbook/xsl/doxygen
From: steven_at_[hidden]
Date: 2009-11-29 10:56:54


Author: steven_watanabe
Date: 2009-11-29 10:56:53 EST (Sun, 29 Nov 2009)
New Revision: 58030
URL: http://svn.boost.org/trac/boost/changeset/58030

Log:
Add support for friend functions defined inline
Text files modified:
   trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl | 20 ++++++++++++++++++++
   1 files changed, 20 insertions(+), 0 deletions(-)

Modified: trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl (original)
+++ trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl 2009-11-29 10:56:53 EST (Sun, 29 Nov 2009)
@@ -723,12 +723,27 @@
         </xsl:if>
         <xsl:apply-templates/>
       </xsl:when>
+ <xsl:when test="@kind='friend'">
+ <xsl:if test="./memberdef/detaileddescription/para or ./memberdef/briefdescription/para">
+ <method-group name="friend functions">
+ <xsl:apply-templates>
+ <xsl:with-param name="in-section" select="true()"/>
+ </xsl:apply-templates>
+ </method-group>
+ </xsl:if>
+ </xsl:when>
       <xsl:when test="@kind='public-static-attrib' or @kind='public-attrib'">
         <xsl:apply-templates/>
       </xsl:when>
       <xsl:when test="@kind='public-type'">
         <xsl:apply-templates/>
       </xsl:when>
+ <xsl:when test="@kind='private-type'">
+ <!--skip private members-->
+ </xsl:when>
+ <xsl:when test="@kind='private-static-attrib' or @kind='private-attrib'">
+ <!--skip private members-->
+ </xsl:when>
       <xsl:when test="@kind='func'">
         <xsl:apply-templates>
           <xsl:with-param name="in-file" select="$in-file"/>
@@ -833,6 +848,11 @@
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
+ <xsl:when test="@kind='friend'">
+ <xsl:if test="./detaileddescription/para or ./briefdescription/para">
+ <xsl:call-template name="method"/>
+ </xsl:if>
+ </xsl:when>
       <xsl:when test="@kind='enum'">
         <xsl:call-template name="enum">
           <xsl:with-param name="in-file" select="$in-file"/>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk