Debian Codegraph @

documentation/source/typedef.rst

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