相关疑难解决方法(0)

使用Doxygen记录命名空间

我遇到了Doxygen识别命名空间和模块的问题.我认为问题围绕着是\addtogroup在命名空间内还是在命名空间之外.

示例1,在命名空间之外:

/*!
 *  \addtogroup Records
 *  @{
 */

//! Generic record interfaces and implementations
namespace Records
{

  //! Describes the record interface  
  class Interface;

} // End namespace Records

/*! @} End of Doxygen Groups*/
Run Code Online (Sandbox Code Playgroud)

示例2 - 在命名空间内

//! Generic record interfaces and implementations
namespace Records
{
/*!
 *  \addtogroup Records
 *  @{
 */


  //! Describes the record interface  
  class Interface;

/*! @} End of Doxygen Groups*/

} // End namespace Records
Run Code Online (Sandbox Code Playgroud)

我希望它namespace Records出现在Doxygen Namespaces …

c++ doxygen namespaces documentation-generation doxygen-addtogroup

26
推荐指数
2
解决办法
3万
查看次数