2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2021-06-22 14:40:19 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cppeditor/cppquickfix.h>
|
2022-07-07 15:21:31 +02:00
|
|
|
#include <languageclient/languageclientquickfix.h>
|
2021-06-22 14:40:19 +02:00
|
|
|
|
|
|
|
|
namespace ClangCodeModel {
|
|
|
|
|
namespace Internal {
|
2022-07-07 15:21:31 +02:00
|
|
|
class ClangdClient;
|
2021-06-22 14:40:19 +02:00
|
|
|
|
|
|
|
|
class ClangdQuickFixFactory : public CppEditor::CppQuickFixFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ClangdQuickFixFactory();
|
|
|
|
|
|
|
|
|
|
void match(const CppEditor::Internal::CppQuickFixInterface &interface,
|
|
|
|
|
QuickFixOperations &result) override;
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-07 15:21:31 +02:00
|
|
|
class ClangdQuickFixProvider : public LanguageClient::LanguageClientQuickFixProvider
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ClangdQuickFixProvider(ClangdClient *client);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
TextEditor::IAssistProcessor *createProcessor(
|
|
|
|
|
const TextEditor::AssistInterface *) const override;
|
|
|
|
|
};
|
|
|
|
|
|
2021-06-22 14:40:19 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace ClangCodeModel
|