blob: 75556aaa2f7e3ab38bb6d9da07f5f2bd88fc1b1d (
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
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <cppeditor/cppquickfix.h>
namespace ClangTools {
namespace Internal {
class DocumentClangToolRunner;
class DocumentQuickFixFactory : public CppEditor::CppQuickFixFactory
{
public:
using RunnerCollector = std::function<DocumentClangToolRunner *(const Utils::FilePath &)>;
DocumentQuickFixFactory(RunnerCollector runnerCollector);
void match(const CppEditor::Internal::CppQuickFixInterface &interface,
QuickFixOperations &result) override;
private:
RunnerCollector m_runnerCollector;
};
} // namespace Internal
} // namespace ClangTools
|