aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2021-06-14 11:47:51 +0200
committerEike Ziller <[email protected]>2021-06-15 10:07:57 +0000
commitbaa83725f640419bc2c17cd28b91e1604255a3dc (patch)
tree0c1819d1398aea3ad448e12e1b595d96a58dacab /src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp
parent9e5ba5d679323540f410c1deafa9b6715ca127bd (diff)
Remove ClangRefactoring and ClangPchManager
This removes the plugins and tools, and removes all the tests that would fail to build because of that. Fixes: QTCREATORBUG-25659 Change-Id: I8adb5d503fc8eea313bcaada421f309dbbfa8c26 Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Marco Bubke <[email protected]>
Diffstat (limited to 'src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp')
-rw-r--r--src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp96
1 files changed, 0 insertions, 96 deletions
diff --git a/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp b/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp
deleted file mode 100644
index 324f0e2884b..00000000000
--- a/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt Creator.
-**
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-****************************************************************************/
-
-#include "pchmanagerconnectionclient.h"
-
-#include <coreplugin/icore.h>
-
-#include <utils/temporarydirectory.h>
-
-#include <QCoreApplication>
-
-namespace ClangPchManager {
-
-namespace {
-
-QString currentProcessId()
-{
- return QString::number(QCoreApplication::applicationPid());
-}
-
-}
-
-ClangPchManager::PchManagerConnectionClient::PchManagerConnectionClient(
- ClangBackEnd::PchManagerClientInterface *client)
- : ConnectionClient(Utils::TemporaryDirectory::masterDirectoryPath()
- + QStringLiteral("/ClangPchManagerBackEnd-")
- + currentProcessId()),
- m_serverProxy(client, ioDevice())
-{
- m_processCreator.setTemporaryDirectoryPattern("clangpchmanagerbackend-XXXXXX");
-
- QDir pchsDirectory(Core::ICore::cacheResourcePath().toString());
- pchsDirectory.mkdir("pchs");
- pchsDirectory.cd("pchs");
- m_processCreator.setArguments({connectionName(),
- Core::ICore::cacheResourcePath("symbol-experimental-v1.db").toString(),
- pchsDirectory.absolutePath(),
- Core::ICore::resourcePath().toString()});
-
- stdErrPrefixer().setPrefix("PchManagerConnectionClient.stderr: ");
- stdOutPrefixer().setPrefix("PchManagerConnectionClient.stdout: ");
-}
-
-PchManagerConnectionClient::~PchManagerConnectionClient()
-{
- finishProcess();
-}
-
-ClangBackEnd::PchManagerServerProxy &ClangPchManager::PchManagerConnectionClient::serverProxy()
-{
- return m_serverProxy;
-}
-
-void ClangPchManager::PchManagerConnectionClient::sendEndCommand()
-{
- m_serverProxy.end();
-}
-
-void PchManagerConnectionClient::resetState()
-{
- m_serverProxy.resetState();
-}
-
-QString PchManagerConnectionClient::outputName() const
-{
- return QStringLiteral("PchManagerConnectionClient");
-}
-
-void PchManagerConnectionClient::newConnectedServer(QLocalSocket *localSocket)
-{
- m_serverProxy.setLocalSocket(localSocket);
-}
-
-} // namespace ClangPchManager