去掉doxygen的点?

Remove the dot of doxygen's copydoc?

本文关键字:的点 doxygen 去掉      更新时间:2023-10-16

我对doxygen的copydoc有问题。例

文件1.h

/*!
 * file
 * FileOne
 */

文件2.h

/*!
 * file
 * This is similar to the copydoc file1.h file.
 */

文档总是说:

这类似于。

文件一。

我不希望添加这个点(和换行符)。如何删除它?

原因是,我希望它从该文件中读取组名。如果添加点,则找不到该组。新示例:

文件1.h

/*!
 * defgroup FileOne
 */
/*!
 * file
 * FileOne
 */

文件2.h

/*!
 * file
 * ingroup copydoc file1.h
 */

文档总是说:

\ .

该文件不会添加到组中,因为它输入FileOne.ingroup 命令。

这不是

copydoc的目的。您正在尝试使用它来替换文件的"名称",但您实际上正在做的是将文档替换为文件,这是一个段落。

我认为您应该为文件命名 - 使用正确的设置,Doxygen将自动生成指向该文件文档的链接。

/*!
 * file
 * This is similar to the file1.h file.
 */