Conceal template parameter defaults that refer to implementation details.

Similar to other contexts, replace default types and values in template
parameter lists that mention implementation details, as configured in
boost.doxygen.detail parameter, with "unspecified".

This fixes dangling refs to implementation detail types and values that
were removed from BoostBook output but are still mentioned in template
parameter defaults.
This commit is contained in:
Andrey Semashev 2024-06-30 18:16:04 +03:00
parent 55bd25054b
commit 8b5189e24e

View File

@ -670,8 +670,15 @@
</xsl:attribute>
<xsl:if test="defval">
<default>
<xsl:choose>
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
<emphasis>unspecified</emphasis>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="defval/*|defval/text()"
mode="passthrough"/>
</xsl:otherwise>
</xsl:choose>
</default>
</xsl:if>
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
@ -696,8 +703,15 @@
</xsl:attribute>
<xsl:if test="defval">
<default>
<xsl:choose>
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
<emphasis>unspecified</emphasis>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="defval/*|defval/text()"
mode="passthrough"/>
</xsl:otherwise>
</xsl:choose>
</default>
</xsl:if>
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
@ -722,8 +736,15 @@
</type>
<xsl:if test="defval">
<default>
<xsl:choose>
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
<emphasis>unspecified</emphasis>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="defval/*|defval/text()"
mode="passthrough"/>
</xsl:otherwise>
</xsl:choose>
</default>
</xsl:if>
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
@ -1143,7 +1164,6 @@
mode="passthrough"/>
</xsl:otherwise>
</xsl:choose>
</default>
</xsl:if>