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:
@@ -3,11 +3,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QFutureInterface>
|
||||
#include <QLoggingCategory>
|
||||
#include <QPointer>
|
||||
#include <QVersionNumber>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
template <typename T>
|
||||
class QPromise;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace LanguageClient { class ExpandedSemanticToken; }
|
||||
namespace TextEditor {
|
||||
class HighlightingResult;
|
||||
@@ -21,7 +25,7 @@ class TaskTimer;
|
||||
Q_DECLARE_LOGGING_CATEGORY(clangdLogHighlight);
|
||||
|
||||
void doSemanticHighlighting(
|
||||
QFutureInterface<TextEditor::HighlightingResult> &future,
|
||||
QPromise<TextEditor::HighlightingResult> &promise,
|
||||
const Utils::FilePath &filePath,
|
||||
const QList<LanguageClient::ExpandedSemanticToken> &tokens,
|
||||
const QString &docContents,
|
||||
|
||||
Reference in New Issue
Block a user