diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-24 21:15:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 21:15:22 (GMT) |
commit | 526a901c2ea1315727f8c60e48b799db39803fcd (patch) | |
tree | 86415af97524959c918da673f905cf8e4840c48f /src | |
parent | 55ca9c847c2a183e1382a2b7f3f7bcfe7cdc852f (diff) | |
parent | 773d0aafb4f603b6924d86a60a2828bd44a16756 (diff) | |
download | Doxygen-526a901c2ea1315727f8c60e48b799db39803fcd.zip Doxygen-526a901c2ea1315727f8c60e48b799db39803fcd.tar.gz Doxygen-526a901c2ea1315727f8c60e48b799db39803fcd.tar.bz2 |
Merge pull request #8198 from albert-github/feature/bug_dot_cleanup
Making the use of DOT_CLEANUP more transparent
Diffstat (limited to 'src')
-rw-r--r-- | src/config.xml | 7 | ||||
-rw-r--r-- | src/docbookvisitor.cpp | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/config.xml b/src/config.xml index cb970f4..fb48c63 100644 --- a/src/config.xml +++ b/src/config.xml @@ -3691,11 +3691,14 @@ add type and arguments for attributes and methods in the UML graphs. ]]> </docs> </option> - <option type='bool' id='DOT_CLEANUP' defval='1' depends='HAVE_DOT'> + <option type='bool' id='DOT_CLEANUP' defval='1'> <docs> <![CDATA[ If the \c DOT_CLEANUP tag is set to \c YES, doxygen will -remove the intermediate dot files that are used to generate the various graphs. +remove the intermediate files that are used to generate the various graphs. + <br>Note: +This setting is not only used for dot files but also for msc and plantuml +temporary files. ]]> </docs> </option> diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp index bf6c827..d444b7b 100644 --- a/src/docbookvisitor.cpp +++ b/src/docbookvisitor.cpp @@ -356,12 +356,13 @@ DB_VIS_C QFile file(baseName+".dot"); if (!file.open(IO_WriteOnly)) { - err("Could not open file %s.msc for writing\n",baseName.data()); + err("Could not open file %s.dot for writing\n",baseName.data()); } file.writeBlock( stext, stext.length() ); file.close(); writeDotFile(baseName, s); m_t << "</para>" << endl; + if (Config_getBool(DOT_CLEANUP)) file.remove(); } break; case DocVerbatim::Msc: @@ -388,6 +389,7 @@ DB_VIS_C file.close(); writeMscFile(baseName,s); m_t << "</para>" << endl; + if (Config_getBool(DOT_CLEANUP)) file.remove(); } break; case DocVerbatim::PlantUML: |