我正在尝试使用 doxygen 为我编写的一些 matlab 类生成文档。我正在使用doxygen-matlab包,其中包含一个 perl 脚本,用于将 matlab .m 文件合并到 c++ 样式的注释文件中,以便 doxygen 可以读取它们。
在我的 doxyfile 中,我已经设置(根据说明)
FILTER_PATTERNS = *m=C:/doxygenMatlab/m2cpp.pl
但是,当代码运行时,而不是在输入文件上运行脚本,它似乎只是使用 .pl 的默认窗口设置打开脚本。
IE,如果我将 .pl 与记事本相关联,则记事本会为 doxygen 尝试解析的每个输入文件打开一次脚本。如果我将 .pl 与 perl.exe 相关联,则脚本运行并抛出无参数错误
参数必须在 C:\doxygenMatlab\m2cpp.pl 第 4 行包含文件名 -1。
doxygen 文档说
Doxygen will invoke the filter program by executing (via popen()) the command <filter> <input-file>
所以我想知道 popen() 和 windows 是否有一些我可以修复的问题。