Skip to content

Commit 2a54cba

Browse files
committed
NFC fix documentation build by rL263015
This time I hope it will fix the build for real. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263052 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 32a22c2 commit 2a54cba

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

docs/ItaniumMangleAbiTags.rst

+11-6
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ the same <substitution> the <unqualified-name> is.
3333

3434
They are mangled as:
3535

36+
.. code-block:: none
37+
3638
<abi-tags> ::= <abi-tag>* # sort by name
3739
<abi-tag> ::= B <tag source-name>
3840
3941
Example:
4042

43+
.. code-block:: c++
44+
4145
__attribute__((abi_tag("test")))
4246
void Func();
43-
44-
gets mangled as: _Z4FuncB4testv (prettified as `Func[abi:test]()`)
47+
// gets mangled as: _Z4FuncB4testv (prettified as `Func[abi:test]()`)
4548

4649
Active tags
4750
===========
@@ -52,6 +55,8 @@ enum), the explicit tags are the active tags.
5255
For variables and functions, the active tags are the explicit tags plus any
5356
"required tags" which are not in the "available tags" set:
5457

58+
.. code-block:: none
59+
5560
derived-tags := (required-tags - available-tags)
5661
active-tags := explicit-tags + derived-tags
5762
@@ -68,15 +73,16 @@ Otherwise the function requires any implicit or explicit tag used in the name
6873
for the return type.
6974

7075
Example:
76+
77+
.. code-block:: c++
78+
7179
namespace A {
7280
inline namespace B __attribute__((abi_tag)) {
7381
struct C { int x; };
7482
}
7583
}
7684

77-
A::C foo();
78-
79-
gets mangled as: _Z3fooB1Bv (prettified as `foo[abi:B]()`)
85+
A::C foo(); // gets mangled as: _Z3fooB1Bv (prettified as `foo[abi:B]()`)
8086

8187
Required tags for a variable
8288
============================
@@ -99,4 +105,3 @@ in the type of a cast operator) are NOT available.
99105
Example: a cast operator to std::string (which is
100106
std::__cxx11::basic_string<...>) will use 'cxx11' as an active tag, as it is
101107
required from the return type `std::string` but not available.
102-

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Design Documents
7676
DriverInternals
7777
PTHInternals
7878
PCHInternals
79+
ItaniumMangleAbiTags
7980

8081

8182
Indices and tables

0 commit comments

Comments
 (0)