Debian Codegraph @

documentation/source/variable.rst

raw
1
2 .. _variable-example:
3
4 doxygenvariable Directive Example
5 =================================
6
7 Working Example
8 ---------------
9
10 .. cpp:namespace:: @ex_variable_example
11
12 This should work:
13
14 .. code-block:: rst
15
16 .. doxygenvariable:: global_cache_tree
17 :project: c_file
18
19 It produces this output:
20
21 .. doxygenvariable:: global_cache_tree
22 :project: c_file
23
24 Failing Example
25 ---------------
26
27 .. cpp:namespace:: @ex_variable_failing
28
29 This intentionally fails:
30
31 .. code-block:: rst
32
33 .. doxygenvariable:: made_up_variable
34 :project: define
35
36 It produces the following warning message:
37
38 .. warning::
39 doxygenvariable: Cannot find variable “made_up_variable” in doxygen XML output for project
40 "tinyxml" from directory: ../../examples/tinyxml/tinyxml/xml/