我想记录我的界面。该界面是用 C++ 编写的,位于 .hpp 文件中。但是,headerdoc2html
似乎不知道 .hpp 文件;它需要 .h 文件。
$ headerdoc2html include/*.hpp HTML output mode. File include/serializer.hpp is not of a known header or source code file type No valid input files specified. Usage: headerdoc2html [-dq] [-o <output directory>] <input file(s) or directory>.
如何强制 HeaderDoc 将输入解释为 C++ 代码?
最佳答案
我只有一个肮脏的建议:将 .hpp 文件复制到 .h 文件。您可以在 makefile 中执行此操作。
这是 Makefile 的一个片段
.SUFFIXES: .h .hpp
.hpp.h:
cp $< $@
记住 Makefile 中的选项卡,在“cp”行之前
关于c++ - 将 HeaderDoc 与 .hpp 文件而不是 .h 文件一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9240028/