File indexing completed on 2024-04-21 04:38:09
0001 /* 0002 SPDX-FileCopyrightText: 2020 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CLAZY_ANALYZER_H 0008 #define CLAZY_ANALYZER_H 0009 0010 // CompileAnalyzer 0011 #include <compileanalyzer.h> 0012 0013 namespace Clazy 0014 { 0015 0016 class Plugin; 0017 class CheckSetSelectionManager; 0018 0019 class Analyzer : public KDevelop::CompileAnalyzer 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 Analyzer(Plugin* plugin, CheckSetSelectionManager* checkSetSelectionManager, QObject* parent); 0025 ~Analyzer(); 0026 0027 protected: 0028 KDevelop::CompileAnalyzeJob* createJob(KDevelop::IProject* project, const KDevelop::Path& buildDirectory, 0029 const QUrl& url, const QStringList& filePaths) override; 0030 bool isOutputToolViewPreferred() const override; 0031 0032 private: 0033 Plugin* const m_plugin; 0034 CheckSetSelectionManager* const m_checkSetSelectionManager; 0035 }; 0036 0037 } 0038 0039 #endif