Skip to content

Instantly share code, notes, and snippets.

@bioshazard
Created February 19, 2019 20:30
Show Gist options
  • Save bioshazard/05afef536bf3966a7df666a7fdc3ddc8 to your computer and use it in GitHub Desktop.
Save bioshazard/05afef536bf3966a7df666a7fdc3ddc8 to your computer and use it in GitHub Desktop.
Doxygen relies on a config file. This is how I generate a callgraph for a drupal module I was exploring. Also had to install i686 version of graphviz to get a functional Dot command.
[root@cac80a94d574 html]# diff mydoxygenconfig.original mydoxygenconfig | grep ">"
> OUTPUT_DIRECTORY = /var/www/html/doxygenout
> EXTRACT_ALL = YES
> EXTRACT_PRIVATE = YES
> EXTRACT_PACKAGE = YES
> EXTRACT_STATIC = YES
> EXTRACT_LOCAL_METHODS = YES
> FILE_PATTERNS = *.php *.inc *.module
> RECURSIVE = YES
> HAVE_DOT = YES
> DOT_NUM_THREADS = 20
> UML_LOOK = YES
> CALL_GRAPH = YES
> CALLER_GRAPH = YES
> DOT_PATH = /usr/bin/dot
@bioshazard
Copy link
Author

  • Created the original with doxygen -g mydoxygenconfig.original then made my changes.
  • Runs with doxygen /var/www/html/mydoxygenconfig (if you want to use the absolute path)
  • Useful to temporarily move all contrib/ folders that you don't want to include in the call graph generation. This is way easier than trying to parse it by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment