如何注释头文件
How do I comment header files?
/* ----------------------------------------------------------
** functions used for converting between different data types
** ---------------------------------------------------------*/
#ifndef TYPECONVERTER_H_INCLUDED
#define TYPECONVERTER_H_INCLUDED
/**
converts binary to decimal
@return converted decimal number
*/
int toDecimal(bool binary[], int noOfNumbers);
/**
converts decimal to binary and stores it in a given array
*/
void toBinary(int origin[], bool binary[], int noOfNumbers);
#endif // TYPECONVERTER_H_INCLUDED
我如何评论这个标题的作用,以便Doxygen理解它?现在它只是将顶部注释分配给第一个函数。
这就是它的样子
Doxygen有一个file
命令,它将注释块标记为记录某个文件。当用作file filename.ext
时,它会将其分配给文件filename.ext
。正如file
一样,它适用于发生它的文件。
例:
/**
@file
functions used for converting between different data types
*/
相关文章:
- 使用 Doxygen 在不同文件中注释函数
- 从 txt 文件中删除注释
- 使用正则表达式从文件中删除行注释
- 提升信息解析器在读取/写入 INFO 格式文件时删除所有注释
- 将文本注释添加到exe文件mingw
- 如何使用 QSettings向我的配置文件添加注释
- 检查文本文件中的多注释并将其打印出来
- 用一些信息注释C++二进制文件
- C 从文本文件中读取数字,忽略注释
- 预处理一个自定义文本文件,以使用Boost Spirit删除注释
- 编译三个文件以创建一个用于平均值的程序(取消注释?)
- Clang 预处理器,用于从C++文件中去除注释
- 从文本文件中读取并将注释放在另一个文件中
- C++文件中的自动注释
- 如何将 JPEG 注释添加到现有的 JPEG 图像文件
- 使用 boost::p roperty_tree::p tree 将注释写入 ini 文件
- 如何注释头文件
- 如何从文件中提取文件属性/元数据/注释?
- 使用python解析或读取CPP文件,并通过忽略CPP文件注释来添加数据
- 将注释识别为配置的一部分的配置文件格式