Debian Codegraph @

documentation/source/enumvalue.rst

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