Add support for friend functions defined inline

[SVN r58030]
This commit is contained in:
Steven Watanabe 2009-11-29 15:56:53 +00:00
parent 3ee20c35ad
commit 56a9dc1a1f

View File

@ -723,12 +723,27 @@
</xsl:if> </xsl:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:when> </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:when test="@kind='public-static-attrib' or @kind='public-attrib'">
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:when> </xsl:when>
<xsl:when test="@kind='public-type'"> <xsl:when test="@kind='public-type'">
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:when> </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:when test="@kind='func'">
<xsl:apply-templates> <xsl:apply-templates>
<xsl:with-param name="in-file" select="$in-file"/> <xsl:with-param name="in-file" select="$in-file"/>
@ -833,6 +848,11 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </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:when test="@kind='enum'">
<xsl:call-template name="enum"> <xsl:call-template name="enum">
<xsl:with-param name="in-file" select="$in-file"/> <xsl:with-param name="in-file" select="$in-file"/>