aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangdclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/clangcodemodel/clangdclient.cpp')
-rw-r--r--src/plugins/clangcodemodel/clangdclient.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp
index c22f1f7445..c5aed091b2 100644
--- a/src/plugins/clangcodemodel/clangdclient.cpp
+++ b/src/plugins/clangcodemodel/clangdclient.cpp
@@ -51,6 +51,7 @@
#include <cppeditor/cppeditorwidget.h>
#include <cppeditor/cppfindreferences.h>
#include <cppeditor/cppmodelmanager.h>
+#include <cppeditor/cpprefactoringchanges.h>
#include <cppeditor/cpptoolsreuse.h>
#include <cppeditor/cppvirtualfunctionassistprovider.h>
#include <cppeditor/cppvirtualfunctionproposalitem.h>
@@ -1528,6 +1529,12 @@ const LanguageClient::Client::CustomInspectorTabs ClangdClient::createCustomInsp
return {std::make_pair(new MemoryUsageWidget(this), tr("Memory Usage"))};
}
+RefactoringChangesData *ClangdClient::createRefactoringChangesBackend() const
+{
+ return new CppEditor::CppRefactoringChangesData(
+ CppEditor::CppModelManager::instance()->snapshot());
+}
+
QVersionNumber ClangdClient::versionNumber() const
{
if (d->versionNumber)