clang-uml
diagrams can be easily added to the Doxygen documentation using the image
tag, however Doxygen does not support the clang-uml
specific commands, which will appear in the documentation unprocessed.
The best solution to this is to tell Doxygen to ignore them, by adding the following lines to the Doxygen config file:
Furthermore, Doxygen adds images to HTML documentation as <img src=""/>
, which disables interactive links in SVG diagrams. One way to go around it is to use a special command for these images, for instance:
and then use the following in the source code comments:
This directive in the configuration file will add the SVG diagrams using <embed>
HTML tag, and enable the links in the diagram on most browsers.
Finally, to have clang-uml
generate links from diagram elements such as classes or packages to Doxygen pages, it is only necessary to add the following configuration file option:
This option will tell clang-uml
to generate a link to a local Doxygen documentation page, provided that it is possible to generate it. Currently, this only works for diagram elements, it will not work for instance for individual methods.