2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 Sergey Morozov
|
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
|
2018-07-30 21:42:47 +03:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
2023-01-09 18:08:30 +01:00
|
|
|
namespace Cppcheck::Internal {
|
2018-07-30 21:42:47 +03:00
|
|
|
|
|
|
|
|
class CppcheckPluginPrivate;
|
|
|
|
|
|
|
|
|
|
class CppcheckPlugin final : public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Cppcheck.json")
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CppcheckPlugin();
|
|
|
|
|
~CppcheckPlugin() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString) final;
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<CppcheckPluginPrivate> d;
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-09 18:08:30 +01:00
|
|
|
} // Cppcheck
|