Fix redundant trailing parenthesis after noexcept with condition.

Fixes https://github.com/boostorg/boostbook/issues/20.
This commit is contained in:
Andrey Semashev 2023-02-26 04:45:30 +03:00
parent 61589d85e1
commit 9f7d6a21dc
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
<method name="const_method" cv="const"><type>void</type></method> <method name="const_method" cv="const"><type>void</type></method>
<method name="volatile_method" cv="volatile"><type>void</type></method> <method name="volatile_method" cv="volatile"><type>void</type></method>
<method name="trad_noexcept" cv="noexcept"><type>void</type></method> <method name="trad_noexcept" cv="noexcept"><type>void</type></method>
<method name="trad_noexcept_if" cv="noexcept(a==b &amp;&amp;(c||d)))"><type>void</type></method> <method name="trad_noexcept_if" cv="noexcept(a==b &amp;&amp;(c||d))"><type>void</type></method>
<method name="boost_noexcept" cv="noexcept"><type>void</type></method> <method name="boost_noexcept" cv="noexcept"><type>void</type></method>
<method name="boost_noexcept_if" cv="noexcept(condition)"><type>void</type></method> <method name="boost_noexcept_if" cv="noexcept(condition)"><type>void</type></method>
<method name="trad_constexpr" cv="constexpr"><type>void</type></method> <method name="trad_constexpr" cv="constexpr"><type>void</type></method>

View File

@ -1156,7 +1156,7 @@
<xsl:when test="string-length($trailing)"> <xsl:when test="string-length($trailing)">
<xsl:value-of select="concat( <xsl:value-of select="concat(
'noexcept(', 'noexcept(',
substring($condition, 1, string-length($condition) - string-length($trailing)), substring($condition, 1, string-length($condition) - string-length($trailing) - 1),
') ')" /> ') ')" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>