aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-08-25 11:43:31 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:08 -0300
commitdb29a857e3734f6d36d3d8cd919574a0dd286ad9 (patch)
tree370c464295288acee162ff970d324755073a4fb3 /apiextractor.cpp
parent729bb0a501941a7b6bb85995d4e1263567017ec3 (diff)
Avoid removing temporary file when in DEBUG mode.
Reviewer: Renato Ara├║jo <renato.filho@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index a8fe38b4..700e8507 100644
--- a/apiextractor.cpp
+++ b/apiextractor.cpp
@@ -216,6 +216,9 @@ bool ApiExtractor::run()
}
QTemporaryFile ppFile;
+#ifndef NDEBUG
+ ppFile.setAutoRemove(false);
+#endif
// run rpp pre-processor
if (!preprocess(m_cppFileName, ppFile, m_includePaths)) {
std::cerr << "Preprocessor failed on file: " << qPrintable(m_cppFileName);