INTERNAL ONLY works for macros, consistent file name check

[SVN r32244]
This commit is contained in:
Eric Niebler 2006-01-06 20:22:00 +00:00
parent 2a0878cc42
commit 0511e808ef

View File

@ -379,30 +379,38 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
<xsl:param name="with-namespace-refs"/> <xsl:param name="with-namespace-refs"/>
<xsl:param name="in-file"/> <xsl:param name="in-file"/>
<xsl:if test="@kind='define'"> <xsl:choose>
<macro> <!-- If the string INTERNAL ONLY is in the description, don't
<xsl:attribute name="name"> emit this entity. This hack is necessary because Doxygen doesn't
<xsl:value-of select="name/text()"/> tell us what is \internal and what isn't. -->
</xsl:attribute> <xsl:when test="contains(detaileddescription/para, 'INTERNAL ONLY')"/>
<xsl:when test="contains(briefdescription/para, 'INTERNAL ONLY')"/>
<xsl:if test="param"> <xsl:when test="@kind='define'">
<xsl:attribute name="kind"> <macro>
<xsl:value-of select="'functionlike'"/> <xsl:attribute name="name">
<xsl:value-of select="name/text()"/>
</xsl:attribute> </xsl:attribute>
</xsl:if>
<xsl:for-each select="param">
<macro-parameter>
<xsl:attribute name="name">
<xsl:value-of select="defname/text()"/>
</xsl:attribute>
</macro-parameter>
</xsl:for-each>
<xsl:apply-templates select="briefdescription" mode="passthrough"/> <xsl:if test="param">
<xsl:apply-templates select="detaileddescription" mode="passthrough"/> <xsl:attribute name="kind">
</macro> <xsl:value-of select="'functionlike'"/>
</xsl:if> </xsl:attribute>
</xsl:if>
<xsl:for-each select="param">
<macro-parameter>
<xsl:attribute name="name">
<xsl:value-of select="defname/text()"/>
</xsl:attribute>
</macro-parameter>
</xsl:for-each>
<xsl:apply-templates select="briefdescription" mode="passthrough"/>
<xsl:apply-templates select="detaileddescription" mode="passthrough"/>
</macro>
</xsl:when>
</xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="innerclass" mode="toplevel"> <xsl:template match="innerclass" mode="toplevel">
@ -686,7 +694,8 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<xsl:template name="typedef"> <xsl:template name="typedef">
<xsl:param name="in-file" select="''"/> <xsl:param name="in-file" select="''"/>
<xsl:if test="contains(string(location/attribute::file), $in-file)"> <xsl:if test="contains(string(location/attribute::file),
concat('/', $in-file))">
<!-- TBD: Handle public/protected/private --> <!-- TBD: Handle public/protected/private -->
<typedef> <typedef>
<!-- Name of the type --> <!-- Name of the type -->
@ -969,7 +978,8 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<!-- Handle member variables --> <!-- Handle member variables -->
<xsl:template name="variable"> <xsl:template name="variable">
<xsl:param name="in-file"/> <xsl:param name="in-file"/>
<xsl:if test="contains(string(location/attribute::file), $in-file)"> <xsl:if test="contains(string(location/attribute::file),
concat('/', $in-file))">
<data-member> <data-member>
<xsl:attribute name="name"> <xsl:attribute name="name">
<xsl:value-of select="name/text()"/> <xsl:value-of select="name/text()"/>