Commit 593d3955 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Remove duplicated logging category

Q_LOGGING_CATEGORY(log, "qtc.clangcodemodel.ipc") is already in
clangbackendlogging.cpp.

Change-Id: If1afa6f266505e696ea00c6ca6bdf0751640784d
Reviewed-by: 's avatarDavid Schulz <david.schulz@qt.io>
Reviewed-by: Marco Bubke's avatarMarco Bubke <marco.bubke@qt.io>
parent d89bd9ff
......@@ -39,8 +39,6 @@
#include <utils/qtcassert.h>
static Q_LOGGING_CATEGORY(log, "qtc.clangcodemodel.ipc")
using namespace ClangBackEnd;
namespace ClangCodeModel {
......@@ -50,7 +48,7 @@ static bool printAliveMessageHelper()
{
const bool print = qEnvironmentVariableIntValue("QTC_CLANG_FORCE_VERBOSE_ALIVE");
if (!print) {
qCDebug(log) << "Hint: AliveMessage will not be printed. "
qCDebug(ipcLog) << "Hint: AliveMessage will not be printed. "
"Force it by setting QTC_CLANG_FORCE_VERBOSE_ALIVE=1.";
}
......@@ -59,7 +57,7 @@ static bool printAliveMessageHelper()
static bool printAliveMessage()
{
static bool print = log().isDebugEnabled() ? printAliveMessageHelper() : false;
static bool print = ipcLog().isDebugEnabled() ? printAliveMessageHelper() : false;
return print;
}
......@@ -155,19 +153,20 @@ void BackendReceiver::reset()
void BackendReceiver::alive()
{
if (printAliveMessage())
qCDebug(log) << "<<< AliveMessage";
qCDebug(ipcLog) << "<<< AliveMessage";
QTC_ASSERT(m_aliveHandler, return);
m_aliveHandler();
}
void BackendReceiver::echo(const EchoMessage &message)
{
qCDebug(log) << "<<<" << message;
qCDebug(ipcLog) << "<<<" << message;
}
void BackendReceiver::codeCompleted(const CodeCompletedMessage &message)
{
qCDebug(log) << "<<< CodeCompletedMessage with" << message.codeCompletions().size() << "items";
qCDebug(ipcLog) << "<<< CodeCompletedMessage with" << message.codeCompletions().size()
<< "items";
const quint64 ticket = message.ticketNumber();
QScopedPointer<ClangCompletionAssistProcessor> processor(m_assistProcessorsTable.take(ticket));
......@@ -179,7 +178,7 @@ void BackendReceiver::codeCompleted(const CodeCompletedMessage &message)
void BackendReceiver::documentAnnotationsChanged(const DocumentAnnotationsChangedMessage &message)
{
qCDebug(log) << "<<< DocumentAnnotationsChangedMessage with"
qCDebug(ipcLog) << "<<< DocumentAnnotationsChangedMessage with"
<< message.diagnostics().size() << "diagnostics"
<< message.tokenInfos().size() << "highlighting marks"
<< message.skippedPreprocessorRanges().size() << "skipped preprocessor ranges";
......@@ -255,7 +254,7 @@ CppTools::SymbolInfo toSymbolInfo(const FollowSymbolMessage &message)
void BackendReceiver::references(const ReferencesMessage &message)
{
qCDebug(log) << "<<< ReferencesMessage with"
qCDebug(ipcLog) << "<<< ReferencesMessage with"
<< message.references().size() << "references";
const quint64 ticket = message.ticketNumber();
......@@ -273,7 +272,7 @@ void BackendReceiver::references(const ReferencesMessage &message)
void BackendReceiver::followSymbol(const ClangBackEnd::FollowSymbolMessage &message)
{
qCDebug(log) << "<<< FollowSymbolMessage with"
qCDebug(ipcLog) << "<<< FollowSymbolMessage with"
<< message.sourceRange() << "range";
const quint64 ticket = message.ticketNumber();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment