CppCheck: Use new settings pattern

Change-Id: Ia2de8e684690ab7bfbdcf7ba417df1f2174433de
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-07-17 08:44:12 +02:00
parent bce9b9ffaa
commit 8e7ac2e59d
5 changed files with 64 additions and 41 deletions

View File

@@ -3,7 +3,7 @@
#pragma once
#include <cppcheck/cppcheckoptions.h>
#include <utils/id.h>
#include <QFutureInterface>
#include <QPointer>
@@ -24,14 +24,13 @@ namespace Cppcheck::Internal {
class CppcheckRunner;
class CppcheckDiagnosticManager;
class CppcheckOptions;
class CppcheckTool final : public QObject
{
Q_OBJECT
public:
CppcheckTool(CppcheckOptions &options, CppcheckDiagnosticManager &manager, const Utils::Id &progressId);
CppcheckTool(CppcheckDiagnosticManager &manager, const Utils::Id &progressId);
~CppcheckTool() override;
void updateOptions();
@@ -49,7 +48,6 @@ private:
void addToQueue(const Utils::FilePaths &files, const CppEditor::ProjectPart &part);
QStringList additionalArguments(const CppEditor::ProjectPart &part) const;
CppcheckOptions &m_options;
CppcheckDiagnosticManager &m_manager;
QPointer<ProjectExplorer::Project> m_project;
std::unique_ptr<CppcheckRunner> m_runner;