嵌入式C语言中的Doxygen注释模板
来源:互联网 发布:指纹充电下载软件 编辑:程序博客网 时间:2024/05/29 11:19
嵌入式C语言开发中通常使用Doxygen进行文档的生成。Doxygen支持多种格式,非常灵活,但排版不好就会显的比较杂乱,不便于阅读。下面给出一份注释模板。
一、文件注释,放于文件的开头
- /**
- * @file filename
- * @brief This is a brief description.
- * @details This is the detail description.
- * @author author
- * @date date
- * @version A001
- * @par Copyright (c):
- * XXX公司
- * @par History:
- * version: author, date, desc\n
- */
二、函数注释,放于函数声明前
- /**
- * This is a brief description.
- * This is a detail description.
- * @param[in] inArgName input argument description.
- * @param[out] outArgName output argument description.
- * @retval OK 成功
- * @retval ERROR 错误
- * @par 标识符
- * 保留
- * @par 其它
- * 无
- * @par 修改日志
- * XXX于201X-XX-XX创建
- */
三、数据结构注释,放于数据结构定义前
- /**
- * The brief description.
- * The detail description.
- */
- typedef struct
- {
- int var1;///<Description of the member variable
- }XXXX;
四、宏定义注释,放于宏定义上方或者右侧
- /** Description of the macro */
- #define XXXX_XXX_XX 0
或者
- #define XXXX_XXX_XX 0 ///< Description of the macro.
五、全局和静态变量注释
- /** Description of global variable */
- int g_xxx = 0;
- static int s_xxx = 0; ///< Description of static variable
====================================
其他参考:
http://fnch.users.sourceforge.net/doxygen_c.html
output :http://fnch.users.sourceforge.net/data/doxygen_c/html/doxygen__c_8h.html
0 0
- 嵌入式C语言中的Doxygen注释模板
- 嵌入式C语言中的Doxygen注释模板
- 嵌入式C语言中的Doxygen注释模板
- 嵌入式C语言中的Doxygen注释模板
- Doxygen:类C语言的注释块
- Doxygen注释模板
- c语言中的注释
- C/C++ doxygen注释示例
- C-Style Doxygen注释格式
- 一份 c++的DoxyGen 的注释模板
- 关于c语言中的注释
- C语言中的注释方法
- 基于Doxygen的C/C++注释原则
- 基于Doxygen的C/C++注释原则
- 基于Doxygen的C/C++注释原则
- 基于Doxygen的C/C++注释原则
- doxygen注释
- doxygen注释
- bnuoj 24250 Binary Operations (概率DP)
- Forbidden You don't have permission to access / on this server.解决方法
- json之将json格式字符串数据转换为实体类.
- zookeeper(三)配置
- 黑马程序员—Foundation框架之NSString
- 嵌入式C语言中的Doxygen注释模板
- Qt Creator 常用快捷键
- /persistence.cpp:5008: error: (-2) The node does not represent a user object (unknown type?) in func
- 干蹦轮播
- 如何导入support_V4包中源码
- likely() and unlikely()
- 论c程序员转java学习
- 简单理解js面向对象工厂方式
- 全景:迭代最近点ICP算法入门(点匹配)