forked from qt-creator/qt-creator
Clang: Use completion through backend process
This makes us independent of libclang crashes for completion.
Re-parsing for highlighting still happens in the Qt Creator process.
Run in verbose mode:
qtc.clangcodemodel.ipc=true
Run tests:
-test "ClangCodeModel"
Task-number: QTCREATORBUG-14108
Task-number: QTCREATORBUG-12819
Change-Id: Id3e95bd2afdb6508bbd1d35fddc69534a909b905
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -136,7 +136,6 @@ const QStringList &CppToolsPlugin::sourcePrefixes()
|
||||
return m_instance->m_fileSettings->sourcePrefixes;
|
||||
}
|
||||
|
||||
|
||||
bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
@@ -153,6 +152,8 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
modelManager->updateSourceFiles(files.toSet());
|
||||
});
|
||||
|
||||
m_codeModelSettings->fromSettings(ICore::settings());
|
||||
|
||||
JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension);
|
||||
|
||||
CppLocatorData *locatorData = new CppLocatorData;
|
||||
@@ -218,7 +219,6 @@ void CppToolsPlugin::extensionsInitialized()
|
||||
m_fileSettings->fromSettings(ICore::settings());
|
||||
if (!m_fileSettings->applySuffixesToMimeDB())
|
||||
qWarning("Unable to apply cpp suffixes to mime database (cpp mime types not found).\n");
|
||||
m_codeModelSettings->fromSettings(ICore::settings());
|
||||
}
|
||||
|
||||
ExtensionSystem::IPlugin::ShutdownFlag CppToolsPlugin::aboutToShutdown()
|
||||
|
||||
Reference in New Issue
Block a user