【发布时间】:2018-09-14 06:18:29
【问题描述】:
我用 *.in 文件生成函数
class Foo
{
public:
...
#define FUNCTION(returnType, getterName) \
returnType getterName(uint8_t iValue) const;
#include "Functions.in"
#undef FUNCTION
...
};
并想使用 Doxygen。 Doxygen 配置如下所示:
...
INPUT = Path/To/Foo
...
FILE_PATTERNS = *.in \
*.c \
*.cc \
*.cxx \
*.cpp \
*.c++
...
SEARCH_INCLUDES = YES
...
INCLUDE_PATH = Path/To/Foo
...
我可以在文档中看到 *.in 文件,但看不到类中的函数。此外,Doxygen 会产生以下警告
Foo.h:10: warning: include file Functions.in not found, perhaps you forgot to add its directory to INCLUDE_PATH?
有人知道如何将 Doxygen 与 *.in 文件一起使用吗?实际上可以将 Doxygen 与生成代码一起使用吗?
【问题讨论】:
标签: c++ documentation doxygen