- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我是第一次尝试使用 doxygen。
我使用它来记录一些 C 库和结构。
我想使用正确的标签,但文档仅就定义宏而言是好的,但函数标签 (\fn
) 被完全忽略了。我在下面附上了一个我标记的评论的例子:
`/*! \file cab.h`
\author dan
\date 20/12/2013
\brief cab
`*/
/*! \def NOT_SPECIFIED`
\brief Constant value that indicates the not specification of a parameter
` */`
`#define NOT_SPECIFIED 0`
/*! \fn cab_create
\brief allocates the memory space and resources for the CAB
\param c cab to create
\param dim_buf size of the data contained in each buffer
\param maximum number of buffer
\param protocol used to handle priority inversion
\param ceiling value of the ceiling,
\return 1 if it completes successfully, -1 otherwise
*/`
int cab_create(cab *c, int dim_buf, int max_buf, int protocol, int ceiling);
最佳答案
文档明确指出,仅当您的注释未紧接在函数声明之前时才需要 \fn
。
If your comment block is in front of the function declaration or definition this command can (and to avoid redundancy should) be omitted.
所以只需删除整个 \fn
行,它应该可以工作。
更新:
顺便说一下,\file
shouldn't have a filename after it .
If the file name is omitted (i.e. the line after \file is left blank) then the documentation block that contains the \file command will belong to the file it is located in.
如果您指定了一个文件名,您将不得不在文件名更改时手动更新它(这将会发生),而且您可能会忘记这样做。不指定文件名更容易,并且始终是最新的。
关于c - Doxygen 不生成函数文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20842380/
根据docs您总是使用指向一组 HTML 文件的 doxygen 标记文件。那么标记文件本身到底做了什么呢?对于一个生成 700 个 HTML 文件的中等规模的项目,我的标记文件是 500Kb,所以里
哪个 Doxygen 选项可以完全禁用按类型(私有(private)/公共(public)/方法/变量)排序成员,并完全根据声明的顺序输出成员? 最佳答案 这通过配置选项是不可能的。你能做的最好的事情
我在 Windows 上使用 Doxygen 1.7.4。 在生成的文档的文件列表页面中,我想查看相对路径。 我已经设置了FULL_PATH_NAMES = YES , 有更多的东西,而不仅仅是没有路
我已经使用 Doxygen 和 Markdown 为中型 C++ 软件编写了文档。我对它很满意,因为在更改了 xml 层后,我最终得到了这样的结果: http://docs.mitk.org/nigh
我现在正在记录我的项目!就目前情况而言,在“文件列表”下,我看到如下内容: File List Folder1/Sub_Folder1/File01 Folder1/Sub_Folder1/File0
我想将源文件中的行长度限制为 80 个字符。当将 Doxygen 函数链接到具有长原型(prototype)的函数时,这是一个问题,例如因为参数的类型名称很长。 在生成文档时,Doxygen 是否可以
例如我将源代码路径设置为c:\code\testapp\src。那么这是否可以作为我可以使用的 var 来使用 - 例如,这样我就可以在与此相关的位置中吐出一个标记文件,而不是相对于 doxygen
除了PREDEFINED配置选项,我总是可以在其中放置 DOXYGEN=1 , 在读取 C++ 文件之前,doxygen 是否预定义了任何预处理器宏? 我的思路是GCC预定义了__GNUC__等宏,
我正在使用 Doxygen 生成开发人员文档。它正确解析所有文件,但输出在成员函数列表和类图中生成重复条目。 有任何想法吗? 最佳答案 我遇到了这个确切的问题,发现我不小心在 INPUT 中指定了一个
解决了一些后initial problems在尝试让 doxygen 工作时,我在关注 doxygen install tutorial 时偶然发现了下一个错误。 . 到目前为止有效的方法:git c
我想使用 doxygen 创建并链接到中央词汇表。 为了创建词汇表,我会在我的 doxygen 搜索路径中使用“glossary.md”文件。内容可通过“相关页面”获得。 是否可以从我的文档中的任何位
我在生成 Doxygen 文档时遇到了这个问题: Problems running dot: exit code=127, command='dot', arguments='"/home/AAA/s
我正在开发一个使用多个库的项目,其结构如下: /源代码 /libs/libOne /libs/libTwo 我想生成一个包含所有代码和库的 Doxygen 页面。这非常简单,只需将 Doxygen 指
我试图在我的 Doxygen 文件的主页上放几张图片,但没能在网上找到答案,Doxygen 将两张图片放在一起。 有什么办法可以并排吗? 最佳答案 默认情况下,doxygen 将图像放在单独的段落中。
在这个 Doxygen 生成的帮助页面上 http://api.fluffyunderware.com/curvy/index.html ,主页和目录有一个分层文档索引。如何在我自己的文档中复制此功能
由于这似乎是一项很常见的任务,我很难相信如果我想将头文件中的所有 doxygen 注释添加到一个组中,我必须这样做 foo.h /** *\addtogroup fooGroup * @{ *
我刚开始使用 doxygen 1.8.7。我正在尝试将体系结构图添加为使用 doxygen 为我的 C# 项目生成的 API 文档的一部分。我生成了默认的 doxygen 布局文件 (DoxygenL
我正在尝试记录包含在单个 C 头文件中的 C API。当我在文件上运行 doxygen 时,它给了我当前未记录的 C 宏的错误,但是当我为宏添加必要的文档时,虽然清除了未记录的错误,但宏和文档不会出现
如果我有一个类: class Base { public: ///does something virtual void method()=0; }; class Child : publi
我是 Doxygen 的新手,并且能够在模块中创建待办事项。我可以创建一个全局待办事项列表还是有更好的方法将所有待办事项放在一个地方? 最佳答案 所有待办事项(使用 doxygen 命令 \todo
我是一名优秀的程序员,十分优秀!