azrdev
azrdev

Reputation: 235

Exclude Qt from doxygen header dependency graph

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.

Upvotes: 2

Views: 675

Answers (1)

Roman Pavelka
Roman Pavelka

Reputation: 4181

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.

Upvotes: 3

Related Questions