Skip to content

Commit 5f85a6e

Browse files
authored
Merge pull request itanium-cxx-abi#52 from epilk/fix-bnf
Fix a typo: := should be ::=
2 parents 96e7f35 + b756983 commit 5f85a6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

abi.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5323,11 +5323,11 @@ <h4><a href="#mangling-scope">5.1.7 Scope Encoding</a></h4>
53235323
relative to the function, and an optional discriminator within the
53245324
function:
53255325

5326-
<code><pre><font color=blue> &lt;<a name="mangle.local-name">local-name</a>&gt; := Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; E &lt;<i>entity</i> <a href="#mangle.name">name</a>&gt; [&lt;<a href="#mangle.discriminator">discriminator</a>&gt;]
5327-
:= Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; E s [&lt;<a href="#mangle.discriminator">discriminator</a>&gt;]
5326+
<code><pre><font color=blue> &lt;<a name="mangle.local-name">local-name</a>&gt; ::= Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; E &lt;<i>entity</i> <a href="#mangle.name">name</a>&gt; [&lt;<a href="#mangle.discriminator">discriminator</a>&gt;]
5327+
::= Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; E s [&lt;<a href="#mangle.discriminator">discriminator</a>&gt;]
53285328

5329-
&lt;<a name="mangle.discriminator">discriminator</a>&gt; := _ &lt;<i>non-negative</i> <a href="#mangle.number">number</a>&gt; # when number < 10
5330-
:= __ &lt;<i>non-negative</i> <a href="#mangle.number">number</a>&gt; _ # when number >= 10
5329+
&lt;<a name="mangle.discriminator">discriminator</a>&gt; ::= _ &lt;<i>non-negative</i> <a href="#mangle.number">number</a>&gt; # when number < 10
5330+
::= __ &lt;<i>non-negative</i> <a href="#mangle.number">number</a>&gt; _ # when number >= 10
53315331
</font></pre></code>
53325332

53335333
<p>The enclosing function is the closest function enclosing the
@@ -5523,7 +5523,7 @@ <h4><a href="#closure-types">5.1.8 Closure Types (Lambdas)</a></h4>
55235523
<p>
55245524
If the context is a default argument (of a member function parameter)
55255525
appearing in a class definition, the closure class and its members are encoded as follows:
5526-
<code><pre><font color=blue> &lt;<a href="#mangle.local-name">local-name</a>&gt; := Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; Ed [ &lt;<i>parameter</i> <a href="#mangle.number">number</a>&gt; ] _ &lt;<i>entity</i> <a href="#mangle.name">name</a>&gt;
5526+
<code><pre><font color=blue> &lt;<a href="#mangle.local-name">local-name</a>&gt; ::= Z &lt;<i>function</i> <a href="#mangle.encoding">encoding</a>&gt; Ed [ &lt;<i>parameter</i> <a href="#mangle.number">number</a>&gt; ] _ &lt;<i>entity</i> <a href="#mangle.name">name</a>&gt;
55275527
</font></pre></code>
55285528
The parameter number is omitted for the last parameter, 0 for the second-to-last parameter, 1 for the third-to-last parameter, etc.
55295529
The <code>&lt;<i>entity</i> <a href="#mangle.name">name</a>&gt;</code> will of course contain a
@@ -5551,7 +5551,7 @@ <h4><a href="#closure-types">5.1.8 Closure Types (Lambdas)</a></h4>
55515551
member (static or nonstatic), inline variable, or variable template,
55525552
it is encoded in a qualified name with a
55535553
final <code>&lt;<a href="#mangle.prefix">prefix</a>&gt;</code> of the form:
5554-
<code><pre><font color=blue> &lt;data-member-prefix&gt; := &lt;<i>member</i> <a href="#mangle.source-name">source-name</a>&gt; [&lt;<a href="#mangle.template-args">template-args</a>&gt;] M
5554+
<code><pre><font color=blue> &lt;data-member-prefix&gt; ::= &lt;<i>member</i> <a href="#mangle.source-name">source-name</a>&gt; [&lt;<a href="#mangle.template-args">template-args</a>&gt;] M
55555555
</font></pre></code>
55565556
where the <code>&lt;<a href="#mangle.template-args">template-args</a>&gt;</code>
55575557
is present for a closure type within a variable template specialization

0 commit comments

Comments
 (0)