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.
Asked
Active
Viewed 567 times
2

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 Answers
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
-
-
@ChristophLipka it should be possible in windows by similar way: https://stackoverflow.com/questions/127318/is-there-any-sed-like-utility-for-cmd-exe – Roman Pavelka Jul 19 '21 at 07:19
-
couldn't test it anymore, but sounds plausible, so I'm accepting the answer. thanks @Roman – azrdev Aug 09 '22 at 09:59