summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
-rw-r--r--src/plugins/cpptools/cppsourceprocessor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppsourceprocessor.cpp b/src/plugins/cpptools/cppsourceprocessor.cpp
index 49b482da88..cd56dae3c9 100644
--- a/src/plugins/cpptools/cppsourceprocessor.cpp
+++ b/src/plugins/cpptools/cppsourceprocessor.cpp
@@ -42,6 +42,7 @@
#include <QCoreApplication>
#include <QCryptographicHash>
#include <QDir>
+#include <QLoggingCategory>
#include <QTextCodec>
/*!
@@ -61,6 +62,8 @@ using namespace CppTools::Internal;
typedef Document::DiagnosticMessage Message;
+static Q_LOGGING_CATEGORY(log, "qtc.cpptools.sourceprocessor")
+
namespace {
inline QByteArray generateFingerPrint(const QList<Macro> &definedMacros, const QByteArray &code)
@@ -112,7 +115,6 @@ inline const Macro revision(const WorkingCopy &workingCopy,
CppSourceProcessor::CppSourceProcessor(const Snapshot &snapshot, DocumentCallback documentFinished)
: m_snapshot(snapshot),
m_documentFinished(documentFinished),
- m_dumpFileNameWhileParsing(false),
m_preprocess(this, &m_env),
m_revision(0),
m_defaultCodec(Core::EditorManager::defaultTextCodec())
@@ -445,8 +447,7 @@ void CppSourceProcessor::sourceNeeded(unsigned line, const QString &fileName, In
return;
}
- if (m_dumpFileNameWhileParsing)
- qDebug() << "Parsing:" << absoluteFileName << "contents:" << contents.size() << "bytes";
+ qCDebug(log) << "Parsing:" << absoluteFileName << "contents:" << contents.size() << "bytes";
Document::Ptr document = Document::create(absoluteFileName);
document->setRevision(m_revision);