diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2021-06-14 11:47:51 +0200 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2021-06-15 10:07:57 +0000 |
| commit | baa83725f640419bc2c17cd28b91e1604255a3dc (patch) | |
| tree | 0c1819d1398aea3ad448e12e1b595d96a58dacab /src/plugins/clangcodemodel/clangrefactoringengine.cpp | |
| parent | 9e5ba5d679323540f410c1deafa9b6715ca127bd (diff) | |
| download | qt-creator-baa83725f640419bc2c17cd28b91e1604255a3dc.tar.gz | |
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>
Diffstat (limited to 'src/plugins/clangcodemodel/clangrefactoringengine.cpp')
| -rw-r--r-- | src/plugins/clangcodemodel/clangrefactoringengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/clangcodemodel/clangrefactoringengine.cpp b/src/plugins/clangcodemodel/clangrefactoringengine.cpp index 926f696a82..779a26fbb3 100644 --- a/src/plugins/clangcodemodel/clangrefactoringengine.cpp +++ b/src/plugins/clangcodemodel/clangrefactoringengine.cpp @@ -28,6 +28,7 @@ #include "clangdclient.h" #include "clangmodelmanagersupport.h" +#include "sourcelocationscontainer.h" #include <cpptools/cppmodelmanager.h> #include <languageclient/languageclientsymbolsupport.h> @@ -74,10 +75,9 @@ void RefactoringEngine::startLocalRenaming(const CppTools::CursorInEditor &data, const QString symbolName = cursor.selectedText(); ClangBackEnd::SourceLocationsContainer container; for (auto& use : info.useRanges) { - container.insertSourceLocation(ClangBackEnd::FilePathId(), + container.insertSourceLocation({}, use.line, - use.column, - use.length); + use.column); } renameSymbolsCallback(symbolName, container, data.cursor().document()->revision()); }); |
