blob: 271470d47b497fd447dcddcc5c728674922d03ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#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:
void emitDone();
class Private;
Private * const d;
};
} // namespace ClangCodeModel::Internal
|