Merge pull request #27 from Lastique/feature/disable_params_sorting

Support disabling sorting function and template parameters
This commit is contained in:
Andrey Semashev 2024-05-13 15:36:09 +03:00 committed by GitHub
commit 0b665ad198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,10 @@
unless everything fits on a single line. --> unless everything fits on a single line. -->
<xsl:param name="boost.short.result.type">12</xsl:param> <xsl:param name="boost.short.result.type">12</xsl:param>
<!-- When true, the stylesheet will sort parameters of functions and
templates alphabetically in detailed description. -->
<xsl:param name="boost.sort.params">1</xsl:param>
<!-- Display a function declaration --> <!-- Display a function declaration -->
<xsl:template name="function"> <xsl:template name="function">
<xsl:param name="indentation"/> <xsl:param name="indentation"/>
@ -822,7 +826,7 @@
list-presentation="table" list-presentation="table"
</xsl:processing-instruction> </xsl:processing-instruction>
<xsl:for-each select="parameter|signature/parameter"> <xsl:for-each select="parameter|signature/parameter">
<xsl:sort select="attribute::name"/> <xsl:sort select="attribute::name[$boost.sort.params!=0]"/>
<xsl:if test="description"> <xsl:if test="description">
<varlistentry> <varlistentry>
<term> <term>
@ -853,7 +857,7 @@
</xsl:processing-instruction> </xsl:processing-instruction>
<xsl:for-each select="template/template-type-parameter| <xsl:for-each select="template/template-type-parameter|
template/template-nontype-parameter"> template/template-nontype-parameter">
<xsl:sort select="attribute::name"/> <xsl:sort select="attribute::name[$boost.sort.params!=0]"/>
<xsl:if test="purpose"> <xsl:if test="purpose">
<varlistentry> <varlistentry>
<term> <term>