如何获得Doxygen从包含文件扩展宏? [英] How do I get Doxygen to expand macros from include files?

查看:106
本文介绍了如何获得Doxygen从包含文件扩展宏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在名为macros.h的文件中定义了许多多行宏。在我的doxyfile中,我有

I have a number of multiline macros defined in a file called macros.h. In my doxyfile, I've got

ENABLE_PREPROCESSING   = YES
MACRO_EXPANSION        = YES
EXPAND_ONLY_PREDEF     = NO
PREDEFINED             =
EXPAND_AS_DEFINED      =
SKIP_FUNCTION_MACROS   = NO

还存在氧气不会在任何包含macros.h的源文件中扩展宏。我运行 doxygen -d预处理程序doxyfile以查看预处理程序的输出,并且它输出如下消息:

yet Doxygen still will not expand the macros in any source file that includes macros.h. I ran "doxygen -d Preprocessor doxyfile" to see the output of the preprocessor, and it outputs messages like:

#include macros.h: not found or already included! skipping...


推荐答案

您已经告诉编译器您的包含路径,但您尚未告诉doxygen。因此,它尝试打开 macros.h并得到一个找不到文件的错误。

You've told your compiler about your include path, but you haven't told doxygen. So it tries to open "macros.h" and gets a file-not-found error.

您需要正确设置 INCLUDE_PATH 在您的Doxy文件中。

You need to properly set INCLUDE_PATH in your Doxyfile.

这篇关于如何获得Doxygen从包含文件扩展宏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆