Doxygen 和 makefile 中的定义

发布于 2025-01-02 12:05:57 字数 315 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文