forked from qt-creator/qt-creator
ClangCodeModel: Use Utils::runAsync instead of QtConcurrent::run
That works the same with Qt 5 and Qt 6.
This reverts commit c1fcaa2877.
Change-Id: I603e50c793c2477454253a57bfe01eb25ecab6e3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -415,8 +415,7 @@ void ClangModelManagerSupport::updateLanguageClient(
|
||||
const ClangDiagnosticConfig warningsConfig = warningsConfigForProject(project);
|
||||
auto future = Utils::runAsync(&Internal::generateCompilationDB, projectInfo, jsonDbDir,
|
||||
CompilationDbPurpose::CodeModel,
|
||||
qMakePair(warningsConfig,
|
||||
optionsForProject(project, warningsConfig)),
|
||||
warningsConfig, optionsForProject(project, warningsConfig),
|
||||
includeDir);
|
||||
generatorWatcher->setFuture(future);
|
||||
m_generatorSynchronizer.addFuture(future);
|
||||
|
||||
Reference in New Issue
Block a user