c++ - 为什么 Doxygen 文档只出现在多个相邻组的最后一个?

标签 c++ doxygen

我正在尝试使用 Doxygen 组同时记录几个类似的函数。我希望函数共享示例中所示的相同文档 here .

// @{
//! @brief Some documentation
int func1(void);
int func2(void);
// @}

// @{
//! @brief Some other documentation
int func3(void);
int func4(void);
// @}

但是,当我运行 doxygen 时,只有第二组 在 HTML 输出中显示 @brief 消息。我做错了什么,或者这是一个潜在的错误?

请注意,我不是试图嵌套组,doxygen 文档说这是不允许的。

最佳答案

为了这对你有用 need to have在您的配置中启用 DISTRIBUTE_GROUP_DOC。代码指定为:

//@{
//! Same documentation for both members. Details ...
void func1InGroup1();
void func2InGroup1();
//@}

如果你想命名分组部分:

//! @name Group name
//@{
//! Same documentation for both members. Details ...
void func1InGroup1();
void func2InGroup1();
//@}

关于c++ - 为什么 Doxygen 文档只出现在多个相邻组的最后一个?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5122925/

相关文章:

cvs - doxygen 的 $Id : . .. $ 是什么意思

Doxygen 不会处理 main.cpp

c++ - 使 printf 更快地写入 Windows 命令行

c++ - 总结然后平均每 10 行从一个 txt 文件

C++ 常量问题

Doxygen 错误 : failed to run html help compiler on index. hhp

c++调用图,但作为文本

doxygen - 如果使用 @ 而不是\是否有负面影响

c# - 将 const char** 转换为 std::vector<std::string>

c++ - 使用 C++ STL 理解 addr2line 消息