【问题标题】:Doxygen commandDoxygen 命令
【发布时间】:2021-06-21 11:55:49
【问题描述】:

我正在研究 Doxygen 并尝试收集文档。 原文档中有几行代码

/// Get the current running request.
/// \sq{Type,         Synchronous function,
///     Notification, none (synchronous function)}

在 Doxygen 源文档中有这样的表示。

Get the current running request. 
     _____________________________________________
    | Type          |  Synchronous function       |
    |_______________|_____________________________|
    | Notification  |  none (synchronous function)|
    |_______________|_____________________________|

如果我自己从这些文件中收集文档 - 我有一整行

Get the current running request. \sq{Type, Synchronous function, Notification, none (synchronous function)}

我做错了什么,或者我需要为此设置哪些设置才能获得表格形式的视图? 我阅读了 Doxygen 的文档,但没有关于 \sq 命令的描述

也许有人会告诉我,使用上面的文本用什么命令可以得到如上表形式的视图?

【问题讨论】:

  • 你检查自定义宏的运行进程配置了吗?
  • 我对自定义宏一无所知,我使用了默认的 Doxygen 设置

标签: doxygen


【解决方案1】:

当使用默认设置文件运行问题时,会收到警告:

 warning: Found unknown command '\sq'

所以在原始代码中,您可能会有一个ALIASES(请参阅文档:https://www.doxygen.nl/manual/config.html#cfg_aliases),其中sq 命令定义了 4 个参数。

这个sq 命令的内容必须由用户定义(可能这里可以用表格来做)。

【讨论】:

  • 非常感谢!通过应用以下定义,我能够获得所需的结果:ALIASES += sq{4}="<table class=\"doxtable\"><tr><td>\1 </td><td>\2 </td></tr><tr><td>\3 </td><td>\4 </td></tr></table>"
猜你喜欢
  • 2011-09-03
  • 2011-10-22
  • 1970-01-01
  • 1970-01-01
  • 2015-11-25
  • 2016-04-18
  • 2021-01-25
  • 2021-07-17
  • 2012-06-17
相关资源
最近更新 更多