按照本指南操作http://doc-snapshot.qt-project.org/qdoc/qdoc-guide-conf.html http://doc-snapshot.qt-project.org/qdoc/qdoc-guide-conf.html,我做了一个简单的qdoc配置文件。
sourcedirs = ../sources
sources.fileextensions = "*.cpp *.qdoc *.mm *.qml"
headers.fileextensions = "*.h *.ch *.h++ *.hh *.hpp *.hxx"
outputdir = ./doc/
outputformats = HTML
However, the generated documenation folder is empty, except for the index file and a couple of folders.
谁能帮忙解释一下吗?多谢!
让我回答我自己的问题。我刚刚发现设置 sourcedirs 是不够的。您还需要设置 headerdirs。
headerdirs = ../sources
这解决了这个问题。 qdoc 首先搜索标头,然后搜索 .cpp 文件中的文档。 qdoc 不会搜索头文件中的文档,但它需要头文件才能查找源文件。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)