gpt4 book ai didi

pdf-generation - 如何订购 Doxygen 团体

转载 作者:行者123 更新时间:2023-12-04 16:49:24 27 4
gpt4 key购买 nike

是否可以对 Doxygen PDF 输出中列出的组(即模块)进行排序?例如,如果我构建当前的 C 项目,commands 的组列在 status 之前的结果 PDF 中,因为它默认遵循字母顺序,而我想要 status 列在 commands 之前。

我尝试更改组名并为模块标题保留相同的标签名称,但这似乎没有任何效果,例如

/** @defgroup g1 Status */   =   /** @defgroup status Status */

谢谢

最佳答案

您可以在代码页的第一个或第一个组定义之前的@defgroup block 中设置组顺序。您不需要 defgroup 部分的组范围。

/**
* @defgroup A_group Group of Macro A
* @defgroup B_group Group of Macro B
* @defgroup C_group Group of Functions
*/

然后使用@ingroup 定义每个组以便需要您的代码。

/**
* @ingoup b_group
* @{
*/
...
/** @} */
...
/**
* @ingroup a_group
* @{
*/
...
/** @} */
...
/**
* @ingroup c_group
* @{
*/
...
/** @} */

关于pdf-generation - 如何订购 Doxygen 团体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27149000/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com