Clang: Decouple ConnectionClient and ClangCodeModel*

We want to reuse the connection client in other plugins. This is the first
step, the next step is refactoring the IPC mechanismn and move it up to
the IpcServer- and IpcClientInterface.

Change-Id: I6eb6db1e9bc18232c8df350a6303afd2edc68da8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Marco Bubke
2016-07-04 14:55:58 +02:00
committed by Tim Jenssen
parent e6fa92e58c
commit c5e79f6269
14 changed files with 278 additions and 29 deletions

View File

@@ -216,7 +216,7 @@ void IpcReceiver::projectPartsDoNotExist(const ProjectPartsDoNotExistMessage &me
class IpcSender : public IpcSenderInterface
{
public:
IpcSender(ClangBackEnd::ConnectionClient &connectionClient)
IpcSender(ClangBackEnd::ClangCodeModelConnectionClient &connectionClient)
: m_connection(connectionClient)
{}
@@ -234,7 +234,7 @@ public:
void updateVisibleTranslationUnits(const UpdateVisibleTranslationUnitsMessage &message) override;
private:
ClangBackEnd::ConnectionClient &m_connection;
ClangBackEnd::ClangCodeModelConnectionClient &m_connection;
};
void IpcSender::end()