2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2022-05-30 13:39:08 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QFutureInterface>
|
|
|
|
|
#include <QLoggingCategory>
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
#include <QVersionNumber>
|
|
|
|
|
|
|
|
|
|
namespace LanguageClient { class ExpandedSemanticToken; }
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
class HighlightingResult;
|
|
|
|
|
class TextDocument;
|
|
|
|
|
}
|
|
|
|
|
namespace Utils { class FilePath; }
|
|
|
|
|
|
|
|
|
|
namespace ClangCodeModel::Internal {
|
|
|
|
|
class ClangdAstNode;
|
|
|
|
|
class TaskTimer;
|
|
|
|
|
Q_DECLARE_LOGGING_CATEGORY(clangdLogHighlight);
|
|
|
|
|
|
|
|
|
|
void doSemanticHighlighting(
|
|
|
|
|
QFutureInterface<TextEditor::HighlightingResult> &future,
|
|
|
|
|
const Utils::FilePath &filePath,
|
|
|
|
|
const QList<LanguageClient::ExpandedSemanticToken> &tokens,
|
|
|
|
|
const QString &docContents,
|
|
|
|
|
const ClangdAstNode &ast,
|
|
|
|
|
const QPointer<TextEditor::TextDocument> &textDocument,
|
|
|
|
|
int docRevision,
|
|
|
|
|
const QVersionNumber &clangdVersion,
|
|
|
|
|
const TaskTimer &taskTimer
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
} // namespace ClangCodeModel::Internal
|