oxygen中的关键字,它将显示当前使用函数的实体
A keyword in Doxygen, which will show which entities currently using function
我正在用氧气记录我的功能。示例:
//! Add the variable to String Hash Map
/*!
Given name of the string, a new the item with this name will be add. This function is being used from GUI when user adds a constant.
param variableName The name of the variable which will be added
*/
void addVariableToStrMap(const QString& variableName);
对于几乎每个函数,我都这样写:This function is being used from GUI class when user adds a constant
。一般我是这样写的;"此函数正用于A
类功能foo
和B
类功能foo2
"
在这种情况下,氧中是否有像"谁或何时或用法"这样的关键字我可以使用?
在Doxyfile中,您会发现选项REFERENCED_BY_RELATION
和REFERENCES_RELATION
。如果您将它们设置为YES,那么您将得到一个以逗号分隔的引用文档化函数的函数列表和由文档化函数引用的以逗号分隔的函数列表。
您可能会对进一步创建自定义命令感兴趣(参见http://www.doxygen.nl/manual/custcmd.html)。您可以通过在Doxyfile中添加带有参数的别名来创建自定义命令,例如:
ALIASES += who{1}="This function is being used from 1 class"
那么你可以在评论中写下:
who{GUI}
这将在您的文档中产生语句"This function is being used from GUI class"
相关文章:
- "error: no matching function for call to"构造函数错误
- 什么时候调用组成单元对象的析构函数
- 继承函数的重载解析
- 为什么随机数生成器不在void函数中随机化数字,而在main函数中随机化
- C++模板来检查友元函数的存在
- 递归函数计算序列中的平方和(并输出过程)
- 对RValue对象调用的LValue ref限定成员函数
- C++17复制构造函数,在std::unordereded_map上进行深度复制
- 将数组作为参数传递给函数安全吗?作为第三方职能部门,可以探索他们想要的之外的其他元素
- 在C++STL中是否有Polyval(Matlab函数)等价物?
- 为什么使用 "this" 指针调用派生成员函数?
- 将对象数组的引用传递给函数
- 函数调用中参数的顺序重要吗
- 返回模板化实体的函数的概念
- 无法将错误分配给成员函数中"类型的实体"
- Lua到c++,用于实体修改的实例化函数
- 摆脱在Qt QGlWidget中绘制实体对象的glut函数
- c++纯虚拟函数与实体
- oxygen中的关键字,它将显示当前使用函数的实体
- 通用打印函数,可以处理列表和标量实体