Doxygen的页面跨多个注释块

时间:2015-10-08 10:17:54

标签: c doxygen

为了编写Catch测试的文档,我想做一些事情,例如:

/// \page TEST_CALCULATOR Test Calculator
/// Testing is so cool... !
SCENARIO("Compute things...") {
    /// Test a simple formula :
    /// \code
    WHEN("23 2 + 3 +") {
       // here is the tested code
    }
    /// \endcode
}

我们的想法是拥有一个编译源文件和一个包含源代码示例的文档。

重点是,Doxygen似乎没有为此创建整个页面。生成的页面只包含“测试很酷......!”。 关于如何做这样的事情的任何想法?

非常感谢!

1 个答案:

答案 0 :(得分:0)

你应该使用'example'标签。

http://www.doxygen.nl/manual/commands.html#cmdexample