使用 Doxywizard 时防止未处理的 DOT 文件被删除

Prevent unprocessed DOT files from being deleted when using Doxywizard

我正在使用 Doxygen 向导为大型嵌入式 C 项目生成文档。我能够使用 Dot 和 Graphviz 生成图表和 class 图表。但是,我想手动编辑一些依赖关系图——有些信息并不总是需要的,例如图深度太多了。

我注意到 运行 Doxywizard 在生成图表文件并将其保存为 PNG 文件之前,会创建“原始文件”(找不到更好的词)来保存使用 Graphviz 生成图表的代码。这些是可以在文本编辑器中打开的 DOT 文件。图表图像生成后,这些文件将被删除。

我能够通过在它们被删除之前停止 Doxywizard 中间进程来访问它们。有什么方法可以防止这些 DOT 文件被删除吗?

Doxygen 有可能保留 dot 个文件。在 doxygen 设置文件 (Doxyfile) 中有设置 DOT_CLEANUP 将其设置为 DOT_CLEANUP=NO 将保留文件。

来自文档:

DOT_CLEANUP

If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate files that are used to generate the various graphs. Note: This setting is not only used for dot files but also for msc temporary files. The default value is: YES

另请参阅:https://www.doxygen.nl/manual/config.html and more specifically: https://www.doxygen.nl/manual/config.html#cfg_dot_cleanup

在 doxywizard 中:

  • 专家选项卡
  • 主题“窗格”最后一项dot
  • 在可能性列表中的最后一项 DOT_CLEANUP