Exclude base library inclusions from Doxygen dependency graph?

守給你的承諾、 提交于 2019-12-21 04:29:30

问题


I'm documenting a c++ project for college with Doxygen, and everything is correct, but the dependency graph shows like this:

I would like that the graph doesn't show inclusions such as list, map or string, and only includes custom Classes i created for the project, but i can't find anything online or on the docs. Does anyone know how to do this?


回答1:


Since you want to exclude the stdlib container classes, you should probably add the std:: namespace to your doxyfile:

EXCLUDE_SYMBOLS = std::*

This will ignore all classes located in that namespace, and thus skip them in the generated diagram.




回答2:


You may want to have a look at this answer:

/** @cond */
#include <string>
// include more headers
/** @endcond */

Not that this solution is particularly beautiful but it seems to work. Note, you may have to have the @file tag defined.



来源:https://stackoverflow.com/questions/36987573/exclude-base-library-inclusions-from-doxygen-dependency-graph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!