2018-01-17 15:08:30 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "clangtoolruncontrol.h"
|
|
|
|
|
|
2018-05-14 11:40:40 +02:00
|
|
|
#include <cpptools/clangdiagnosticconfig.h>
|
|
|
|
|
|
2018-01-17 15:08:30 +01:00
|
|
|
namespace ClangTools {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2019-08-27 11:28:48 +02:00
|
|
|
class ClangTidyClazyRunWorker final : public ClangToolRunWorker
|
2018-01-17 15:08:30 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2019-08-27 11:28:48 +02:00
|
|
|
ClangTidyClazyRunWorker(ProjectExplorer::RunControl *runControl,
|
|
|
|
|
ProjectExplorer::Target *target,
|
|
|
|
|
const CppTools::ClangDiagnosticConfig &diagnosticConfig,
|
|
|
|
|
const FileInfos &fileInfos);
|
2018-01-17 15:08:30 +01:00
|
|
|
|
|
|
|
|
protected:
|
2019-08-01 14:50:59 +02:00
|
|
|
QList<RunnerCreator> runnerCreators() final;
|
2018-01-17 15:08:30 +01:00
|
|
|
ClangTool *tool() final;
|
2018-05-14 11:40:40 +02:00
|
|
|
|
2019-08-01 14:50:59 +02:00
|
|
|
private:
|
|
|
|
|
ClangToolRunner *createRunner();
|
|
|
|
|
|
2018-05-14 11:40:40 +02:00
|
|
|
private:
|
|
|
|
|
CppTools::ClangDiagnosticConfig m_diagnosticConfig;
|
2018-01-17 15:08:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace ClangTools
|