summaryrefslogtreecommitdiff
path: root/src/plugins/clangcodemodel
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@theqtcompany.com>2016-02-08 13:23:28 +0100
committerMarco Bubke <marco.bubke@theqtcompany.com>2016-02-08 14:11:44 +0000
commit974070d2c848fd5c8e1798c97662bccbe77b3307 (patch)
treee73a052ef8353e32338f9daf42d69661d518cbcd /src/plugins/clangcodemodel
parentc3bbf389d900565bfe9743995056fac6a6f87b67 (diff)
downloadqt-creator-974070d2c848fd5c8e1798c97662bccbe77b3307.tar.gz
Clang: Use MessageEnvelop instead of QVariant
QVariant has unwanted dependencies so we provided our own simpler solution. We want to support move only types and calling the copy constructor as you move the value in and outside. This copying is adding unwanted overhead too. Change-Id: I2e27a7924868efe81e8b8ff3415499c9fa22c2bc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel')
-rw-r--r--src/plugins/clangcodemodel/clangbackendipcintegration.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/clangcodemodel/clangbackendipcintegration.cpp b/src/plugins/clangcodemodel/clangbackendipcintegration.cpp
index 371f64ed76..2fc53500cc 100644
--- a/src/plugins/clangcodemodel/clangbackendipcintegration.cpp
+++ b/src/plugins/clangcodemodel/clangbackendipcintegration.cpp
@@ -57,7 +57,6 @@
#include <clangbackendipc/cmbregisterprojectsforeditormessage.h>
#include <clangbackendipc/cmbunregistertranslationunitsforeditormessage.h>
#include <clangbackendipc/cmbunregisterprojectsforeditormessage.h>
-#include <clangbackendipc/cmbmessages.h>
#include <clangbackendipc/registerunsavedfilesforeditormessage.h>
#include <clangbackendipc/requestdiagnosticsmessage.h>
#include <clangbackendipc/requesthighlightingmessage.h>
@@ -323,15 +322,8 @@ IpcCommunicator::IpcCommunicator()
initializeBackend();
}
-static bool areMessagesRegistered = false;
-
void IpcCommunicator::initializeBackend()
{
- if (!areMessagesRegistered) {
- areMessagesRegistered = true;
- Messages::registerMessages();
- }
-
const QString clangBackEndProcessPath = backendProcessPath();
qCDebug(log) << "Starting" << clangBackEndProcessPath;
QTC_ASSERT(QFileInfo(clangBackEndProcessPath).exists(), return);