2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2022-06-20 15:22:27 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <utils/link.h>
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
namespace CppEditor { class CppEditorWidget; }
|
|
|
|
|
namespace TextEditor { class TextDocument; }
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QTextCursor;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace ClangCodeModel::Internal {
|
|
|
|
|
class ClangdClient;
|
|
|
|
|
|
|
|
|
|
class ClangdSwitchDeclDef : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
ClangdSwitchDeclDef(ClangdClient *client, TextEditor::TextDocument *doc,
|
|
|
|
|
const QTextCursor &cursor, CppEditor::CppEditorWidget *editorWidget,
|
|
|
|
|
const Utils::LinkHandler &callback);
|
|
|
|
|
~ClangdSwitchDeclDef();
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void done();
|
|
|
|
|
|
|
|
|
|
private:
|
2022-07-07 15:46:53 +02:00
|
|
|
void emitDone();
|
2022-06-20 15:22:27 +02:00
|
|
|
class Private;
|
|
|
|
|
Private * const d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace ClangCodeModel::Internal
|