Debian Codegraph @

documentation/source/union.rst

raw
1
2 .. _union-example:
3
4 doxygenunion Directive Example
5 ==============================
6
7 Working Example
8 ---------------
9
10 .. cpp:namespace:: @ex_union_example
11
12 This should work:
13
14 .. code-block:: rst
15
16 .. doxygenunion:: SeparateUnion
17 :project: union
18
19 It produces this output:
20
21 .. doxygenunion:: SeparateUnion
22 :project: union
23
24 Example with Namespace
25 ----------------------
26
27 .. cpp:namespace:: @ex_union_namespace
28
29 This should work:
30
31 .. code-block:: rst
32
33 .. doxygenunion:: foo::MyUnion
34 :project: union
35
36 It produces this output:
37
38 .. doxygenunion:: foo::MyUnion
39 :project: union
40
41 Failing Example
42 ---------------
43
44 .. cpp:namespace:: @ex_union_failing
45
46 This intentionally fails:
47
48 .. code-block:: rst
49
50 .. doxygenunion:: made_up_union
51 :project: union
52
53 It produces the following warning message:
54
55 .. warning::
56 doxygenunion: Cannot find union "made_up_union" in doxygen XML
57 output for project "union" from directory: ../../examples/specific/union/xml/