2

I have a Qt-based C++ project and a Doxyfile to generate a documentation website for it. I like the include dependency graphs enabled by INCLUDE_GRAPH and INCLUDED_BY_GRAPH. Sometimes, however, they get very cluttered by all the Qt headers included. (How) can I only display my own files there? I tried adding EXCLUDE = /usr/include/qt, to no avail. This question has no answer, either.

azrdev
  • 225
  • 1
  • 13
  • We use EXCLUDE_PATTERNS. Try this: `EXCLUDE_PATTERNS = */include/qt/*` – V-R Sep 28 '16 at 13:52
  • @V-R does not work, the Qt types are still in the include dependency graphs – azrdev Sep 29 '16 at 08:18
  • Also searched around about a similar problem (glib dependency here). The only clunky work-around I found is https://stackoverflow.com/a/17886130/4545530 – mkiever Sep 26 '18 at 21:11

1 Answers1

3

Bit outdated but I have found the answer. Set up the INPUT_FILTER (under Expert/Input in doxywizard) to

sed -e "s:#include <Q.*>:// REMOVED:g"

This will preprocess any file that Doxygen analyses and replace all #include <QAnything> with comment // REMOVED.

Roman Pavelka
  • 3,736
  • 2
  • 11
  • 28