doxygen - 在简要说明中加点

标签 doxygen

我得到了这个示例代码。我想在我的简短评论中加一个点。

const int myVar = 1;   //!< Doxygen very long brief\.
                       //!  Brief sentence two.

我按照 doxygen 手册中的说明转义了那个点。 这是行不通的。第一行很简短,第二行很详细。这是错误吗?

注意:MULTILINE_CPP_IS_BRIEFQT_AUTOBRIEFYES!我使用的是最新版本 (1.8.9.1)。

最佳答案

doxygen manual

If you enable this option and want to put a dot in the middle of a sentence without ending it, you should put a backslash and a space after it.

您的反斜杠在点的错误一侧,手册必须按字面意思理解,这意味着反斜杠后需要空格。

以下应该有效(没有花括号部分):

const int myVar = 1;   //!< Doxygen very long brief.\ {← SPACE here!}
                       //!  Brief sentence two.

关于doxygen - 在简要说明中加点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29391998/

相关文章:

c - 如何为 Doxygen 指定函数搜索路径

c - 氧气 [C] : hiding file names

c++ - 在 doxygen 中对重载进行分组

c++ - 有没有自动生成 doxygen 注释 block 的软件?

doxygen 调用/调用图

html - Doxygen 可以转义 HTML 标签吗?

c++ - Doxygen 中的 RTF 语法高亮显示

c++ - C/C++ : What does the comment "/*< */" stand for?

Doxygen\cite 生成空引用书目

php - 一个文档如何使用 Doxygen 类属性?