forked from qt-creator/qt-creator
ClangCodeModel: Use QtConcurrent invocation for async run
Change-Id: Id404d3a7699f12cdbc1e51390b3e5218ab3459b6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -41,9 +41,9 @@
|
||||
#include <projectexplorer/taskhub.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/asynctask.h>
|
||||
#include <utils/infobar.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/runextensions.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QLabel>
|
||||
@@ -591,7 +591,7 @@ void ClangModelManagerSupport::updateLanguageClient(ProjectExplorer::Project *pr
|
||||
|
||||
});
|
||||
const FilePath includeDir = settings.clangdIncludePath();
|
||||
auto future = Utils::runAsync(&Internal::generateCompilationDB, projectInfo,
|
||||
auto future = Utils::asyncRun(&Internal::generateCompilationDB, projectInfo,
|
||||
jsonDbDir, CompilationDbPurpose::CodeModel,
|
||||
warningsConfigForProject(project),
|
||||
globalClangOptions(), includeDir);
|
||||
|
||||
Reference in New Issue
Block a user