blob: 21c97818896f00e5140065c08b62eaeedf89b947 (
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+ OR GPL-3.0 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
|