我正在使用 Doxygen 记录 C++ 库的头文件。在Doxyfile
中,我定义了
INPUT = include/
希望 Doxygen 会为 include/Foo
中的所有头文件生成文档,但它没有:只生成 index.html
。我可以将 INPUT
设置为 include/Foo
,但随后文档列出了 header 及其基本名称 (Reader.hh
),而我需要客户端将标题包含为 Foo/Reader.hh
等。
如何让 Doxygen 在子目录中查看?
最佳答案
您是否将 RECURSIVE 设置为 YES?
# The RECURSIVE tag can be used to turn specify whether or not subdirectories
# should be searched for input files as well. Possible values are YES and NO.
# If left blank NO is used.
RECURSIVE = YES
它在 Doxyfile
中(这里是第 608 行,对您来说可能略有不同)
关于c++ - Doxygen 不会在子目录中找到标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4409232/