Merge pull request #21 from Lastique/feature/fix_noexcept_if_trailing_paren

Fix double trailing parenthesis after `noexcept(cond)`
This commit is contained in:
Glen Fernandes 2023-02-26 08:06:31 -05:00 committed by GitHub
commit 2fccdae6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 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="volatile_method" cv="volatile"><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_if" cv="noexcept(condition)"><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:value-of select="concat(
'noexcept(',
substring($condition, 1, string-length($condition) - string-length($trailing)),
substring($condition, 1, string-length($condition) - string-length($trailing) - 1),
') ')" />
</xsl:when>
<xsl:otherwise>

0
xsl/sections.xsl Executable file → Normal file
View File