- Install package
pacman -S doxygen graphviz
- Goto the top directory of source code, and create doxygen configuration.
doxygen -g a.conf
# vim a.conf
EXTRACT_ALL = YES
HAVE_DOT = YES
UML_LOOK = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
CALL_GRAPH = YES
OUTPUT_DIRECTORY = /tmp/doc/
# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
RECURSIVE = YES
#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = YES
3. run doxygen to create html
doxygen a.conf
Reference:
- How to use doxygen to create UML class diagrams from C++ source
- Generating a callgraph by using Doxygen and Graphviz
0 意見:
張貼留言