如何在 doxygen 的注释中插入项目名称
How to insert the project name in a comment in doxygen?
我经常在我写的评论中使用项目名称。但是,到目前为止,我对其进行了硬编码。现在我意识到,如果要更改项目名称,我将不得不浏览所有文档部分并进行更改。因此,我想问一下是否可以简单地在评论中引用项目名称,然后让doxygen稍后填写。
/*! brief This is the main function of the (project_name) project
*/
int main()
{
return 0;
}
我认为您正在寻找的是环境变量,您可以在此处阅读。您要找的那个应该是 $(PROJECT_NAME)
.要使用它,请参阅此答案。
相关文章:
- 使用C++库在Android项目中修改gradle中的cmake参数,用于插入指令的测试
- Visual Studio 2019:插入多个C++风格的单行注释
- 无法在我的链接列表中插入项目,head始终为NULL
- 将项目插入 CTreeCtrl 时线程函数的奇怪行为
- 将项目插入到std :: map时错误
- 如何修改函数以按C++的排序顺序插入每个项目
- 如何在C 中以给定索引列表中的项目插入项目
- 在拖放 QML 列表中插入/删除项目使用 cpp 模型查看
- CMake 插入不带文件夹前缀的项目文件
- 如何在滚动区域中动态插入项目并在QT中加载滚动条
- 将项目"更新插入"到映射<键、shared_ptr的正确方法<foo>>
- 将项目插入桌面右键单击菜单从外壳扩展
- QTreeWidget使用拖放在两个项目之间插入
- 将项目插入数组
- 插入新项目后,如何获得布局的高度
- 在 protobuf 列表的开头插入项目
- 如何在 doxygen 的注释中插入项目名称
- Qt内置数据结构中是否有忽略重复插入项目的数据结构
- 在我的排序列表中插入项目时出现问题
- 如何在std::map中插入项目而不违反MISRA C++2008必需规则5-2-12