Exclude specific headers from dependency graphs

I'm not sure if this is a doxygen or dot issue, but here.

In my project, I have many files that should include common headers such as stdlib.h , stdint.h , etc. When I ask doxygen generate dependency graphs for each of my files, this leads to a lot of noise and noise, since the paint tool always reuses existing nodes and never duplicates them.

Is there any way to tell doxygen exclude a set of headers from the generated chart, just completely ignore them? I would prefer not to resort to terrible preprocessing tricks to remove #include when creating documentation.

I found a couple of mailing list threads of someone asking the same thing, but they either did not have an answer or the assumption of playing with the maximum depth of the dependency graph, which simply does not work, since the headers can be included at any depth (so this ends up chewing on my own local headers).

+6
source share
1 answer

A bit long shot because my doxygen is a little rusty, but you tried

 \cond \endcond 

around the header section. (Conditional inclusion, but empty = false)

In other cases, this precludes the ability to display code between tokens on doxygen, but I'm not sure if it will work for this instance.

+4
source

Source: https://habr.com/ru/post/949972/


All Articles