summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-23 17:48:35 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-23 17:48:35 (GMT)
commit773d0aafb4f603b6924d86a60a2828bd44a16756 (patch)
tree72ed16d9cd63aab25a8bf43695e841ea11f0c93c /src
parent4e75d77f60bd173019247177686376ce36ace90b (diff)
downloadDoxygen-773d0aafb4f603b6924d86a60a2828bd44a16756.zip
Doxygen-773d0aafb4f603b6924d86a60a2828bd44a16756.tar.gz
Doxygen-773d0aafb4f603b6924d86a60a2828bd44a16756.tar.bz2
Making the use of DOT_CLEANUP more transparent
- The setting `DOT_CLEANUP` is not only used for `dot` files but also for temporary `msc` and `plantuml` files, though this was not clear from the documentation. - For the docbook output format the removal of the `dot` and `msc` files was not don like in the output formats html / LatTeX / rtf.
Diffstat (limited to 'src')
-rw-r--r--src/config.xml7
-rw-r--r--src/docbookvisitor.cpp4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/config.xml b/src/config.xml
index 0ec4219..9077f04 100644
--- a/src/config.xml
+++ b/src/config.xml
@@ -3690,11 +3690,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: