forked from qt-creator/qt-creator
CppEditor: Clean up ModelManagerSupport creation
No need for "providers" etc. Change-Id: I4ae9e8ecd6b3554711e002f233c13fd7758f01e4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "clangcodemodelplugin.h"
|
||||
|
||||
#include "clangconstants.h"
|
||||
#include "clangmodelmanagersupport.h"
|
||||
#include "clangutils.h"
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
@@ -115,7 +116,8 @@ bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *err
|
||||
this,
|
||||
&ClangCodeModelPlugin::maybeHandleBatchFileAndExit);
|
||||
|
||||
CppEditor::CppModelManager::instance()->activateClangCodeModel(&m_modelManagerSupportProvider);
|
||||
CppEditor::CppModelManager::instance()->activateClangCodeModel(
|
||||
std::make_unique<ClangModelManagerSupport>());
|
||||
|
||||
createCompilationDBButton();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user