forked from qt-creator/qt-creator
CppIndexingSupport: Flatten class hierarchy
Don't make CppIndexingSupport a pure virtual class as there is only one subclass. Change-Id: I9f216a2f1f5d04f601d07b9507a4e9cf27ff7c46 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
#include "abstracteditorsupport.h"
|
||||
#include "baseeditordocumentprocessor.h"
|
||||
#include "builtinindexingsupport.h"
|
||||
#include "compileroptionsbuilder.h"
|
||||
#include "cppcodemodelinspectordumper.h"
|
||||
#include "cppcodemodelsettings.h"
|
||||
@@ -975,7 +974,7 @@ CppModelManager::CppModelManager()
|
||||
qRegisterMetaType<QList<Document::DiagnosticMessage>>(
|
||||
"QList<CPlusPlus::Document::DiagnosticMessage>");
|
||||
|
||||
d->m_internalIndexingSupport = new BuiltinIndexingSupport;
|
||||
d->m_internalIndexingSupport = new CppIndexingSupport;
|
||||
|
||||
initCppTools();
|
||||
}
|
||||
@@ -1696,7 +1695,7 @@ void CppModelManager::onActiveProjectChanged(ProjectExplorer::Project *project)
|
||||
|
||||
void CppModelManager::onSourceFilesRefreshed() const
|
||||
{
|
||||
if (BuiltinIndexingSupport::isFindErrorsIndexingActive()) {
|
||||
if (CppIndexingSupport::isFindErrorsIndexingActive()) {
|
||||
QTimer::singleShot(1, QCoreApplication::instance(), &QCoreApplication::quit);
|
||||
qDebug("FindErrorsIndexing: Done, requesting Qt Creator to quit.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user