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:
Eike Ziller
2022-05-12 11:08:06 +02:00
parent 35963fd2b8
commit ff83642681
4 changed files with 17 additions and 18 deletions

View File

@@ -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);