Doxygen 和 makefile 中的定义
我正在使用 Doxygen 生成一些代码的文档。我有一个很大的 makefile,其中有很多 OPT+=-DSOME_OPTION
,我希望 Doxygen 在分析代码时考虑这些内容,因为部分代码是有条件编译的。
我知道 Doxygen 配置文件中有一个选项 PREDEFINED
,它指定为预处理器定义的宏名称,但我不想每次 makefile 中发生更改时都手动更新此列表。本质上,我想设置 PREDEFINED
选项来扫描 makefile 中的编译定义并自动更新。
Doxygen 可以做到这一点吗?
I'm using Doxygen to generate documentation for some code. I have a large makefile with a lot of OPT+=-DSOME_OPTION
that I want to Doxygen to take into account when it analyses the code, since parts of the code are conditionally compiled.
I know there is a an option PREDEFINED
in the Doxygen configuration file that specifies macro names that are defined for the preprocessor, but I do not want to manually update this list every time a change happens in the makefile. In essence I want to set the PREDEFINED
option to scan the makefile for compilation definitions and be automatically updated.
Is this possible with Doxygen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论