Files
qt-creator/src/plugins/clangtools/clangtoolsplugin.h

37 lines
948 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
2014-09-25 11:11:58 +02:00
#pragma once
2014-09-25 11:11:58 +02:00
#include <extensionsystem/iplugin.h>
namespace Core { class IDocument; }
namespace ProjectExplorer { class ProjectPanelFactory; }
namespace ClangTools {
2014-09-25 11:11:58 +02:00
namespace Internal {
ProjectExplorer::ProjectPanelFactory *projectPanelFactory();
class ClangToolsPlugin final : public ExtensionSystem::IPlugin
2014-09-25 11:11:58 +02:00
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "ClangTools.json")
2014-09-25 11:11:58 +02:00
public:
ClangToolsPlugin() = default;
~ClangToolsPlugin() final;
2014-09-25 11:11:58 +02:00
private:
bool initialize(const QStringList &arguments, QString *errorString) final;
void registerAnalyzeActions();
void onCurrentEditorChanged();
QVector<QObject *> createTestObjects() const final;
class ClangToolsPluginPrivate *d = nullptr;
2014-09-25 11:11:58 +02:00
};
} // namespace Internal
} // namespace ClangTools