Debian Codegraph @

documentation/source/enum.rst

raw
1
2 .. _enum-example:
3
4 doxygenenum Directive Example
5 ===============================
6
7 Working Example
8 ---------------
9
10 .. cpp:namespace:: @ex_enum_example
11
12 This should work:
13
14 .. code-block:: rst
15
16 .. doxygenenum:: NodeType
17 :project: tinyxml
18
19 It produces this output:
20
21 .. doxygenenum:: NodeType
22 :project: tinyxml
23
24 Example with Namespace
25 ----------------------
26
27 .. cpp:namespace:: @ex_enum_namespace
28
29 This should work:
30
31 .. code-block:: rst
32
33 .. doxygenenum:: foo::ns::Letters
34 :project: namespace
35
36 It produces this output:
37
38 .. doxygenenum:: foo::ns::Letters
39 :project: namespace
40
41 Failing Example
42 ---------------
43
44 .. cpp:namespace:: @ex_enum_failing
45
46 This intentionally fails:
47
48 .. code-block:: rst
49
50 .. doxygenenum:: made_up_enum
51 :project: restypedef
52
53 It produces the following warning message:
54
55 .. warning::
56 doxygenenum: Cannot find enum "made_up_enum" in doxygen xml output