【问题标题】:Exclude base library inclusions from Doxygen dependency graph?从 Doxygen 依赖图中排除基本库包含?
【发布时间】:2016-08-27 12:30:30
【问题描述】:
我正在用 Doxygen 为大学记录一个 c++ 项目,一切正常,但依赖关系图显示如下:
我希望图表不显示列表、地图或字符串等包含内容,并且只包含我为项目创建的自定义类,但我在网上或文档上找不到任何内容。有谁知道怎么做?
【问题讨论】:
标签:
c++
graph
dependencies
documentation
doxygen
【解决方案1】:
由于您想排除 stdlib 容器类,您可能应该将 std:: 命名空间添加到您的 doxyfile:
EXCLUDE_SYMBOLS = std::*
这将忽略位于该命名空间中的所有类,从而在生成的图表中跳过它们。
【解决方案2】:
你可能想看看this answer:
/** @cond */
#include <string>
// include more headers
/** @endcond */
并不是说这个解决方案特别漂亮,但它似乎有效。
请注意,您可能必须定义 @file 标记。