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 <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Eike Ziller
2021-06-14 11:47:51 +02:00
parent 9e5ba5d679
commit baa83725f6
515 changed files with 31 additions and 51951 deletions

View File

@@ -1,6 +1,6 @@
add_qtc_plugin(CppTools
DEPENDS Qt5::Network Qt5::Xml
PUBLIC_DEPENDS CPlusPlus Qt5::Widgets
PUBLIC_DEPENDS CPlusPlus ClangSupport Qt5::Widgets
PLUGIN_DEPENDS Core ProjectExplorer TextEditor
PLUGIN_TEST_DEPENDS CppEditor QmakeProjectManager
SOURCES

View File

@@ -30,6 +30,7 @@
#include "cpptoolsreuse.h"
#include "cppfollowsymbolundercursor.h"
#include <clangsupport/sourcelocationscontainer.h>
#include <texteditor/texteditor.h>
#include <utils/qtcassert.h>

View File

@@ -8,6 +8,7 @@ Project {
Depends { name: "Qt.widgets" }
Depends { name: "Qt.testlib"; condition: project.withAutotests }
Depends { name: "CPlusPlus" }
Depends { name: "ClangSupport" }
Depends { name: "Utils" }
Depends { name: "Core" }

View File

@@ -1,6 +1,7 @@
QTC_PLUGIN_NAME = CppTools
QTC_LIB_DEPENDS += \
cplusplus \
clangsupport \
extensionsystem \
utils
QTC_PLUGIN_DEPENDS += \

View File

@@ -32,15 +32,16 @@
#include <utils/link.h>
#include <utils/fileutils.h>
#include <clangsupport/sourcelocationscontainer.h>
#include <clangsupport/refactoringclientinterface.h>
#include <cplusplus/CppDocument.h>
namespace TextEditor {
class TextEditorWidget;
} // namespace TextEditor
namespace ClangBackEnd {
class SourceLocationsContainer;
}
namespace CppTools {
class ProjectPart;
@@ -56,7 +57,9 @@ enum class CallType
class CPPTOOLS_EXPORT RefactoringEngineInterface
{
public:
using RenameCallback = ClangBackEnd::RefactoringClientInterface::RenameCallback;
using RenameCallback = std::function<void(const QString &,
const ClangBackEnd::SourceLocationsContainer &,
int)>;
using Link = Utils::Link;
virtual ~RefactoringEngineInterface() = default;