File indexing completed on 2024-04-28 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 CLANGTIDY_ANALYZER_H 0008 #define CLANGTIDY_ANALYZER_H 0009 0010 // CompileAnalyzer 0011 #include <compileanalyzer.h> 0012 0013 namespace ClangTidy 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 0031 private: 0032 Plugin* const m_plugin; 0033 CheckSetSelectionManager* const m_checkSetSelectionManager; 0034 }; 0035 0036 } 0037 0038 #endif