File indexing completed on 2024-04-28 04:38:09

0001 /*
0002     SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef CLANGTIDY_CHECKSET_H
0008 #define CLANGTIDY_CHECKSET_H
0009 
0010 // Qt
0011 #include <QStringList>
0012 
0013 namespace ClangTidy
0014 {
0015 
0016 /**
0017  * \brief Provides all available checks by running clang-tidy with the following parameters: "--checks=*
0018  * --list-checks".
0019  */
0020 class CheckSet
0021 {
0022 public:
0023     CheckSet() = default;
0024 
0025 public:
0026     /**
0027      * @param path the system path for the clang-tidy program.
0028      */
0029     void setClangTidyPath(const QString& path);
0030 
0031     const QStringList &all() const { return m_allChecks; }
0032     QStringList defaults() const;
0033 
0034 private:
0035     QString m_clangTidyPath;
0036     QStringList m_allChecks;
0037 };
0038 
0039 }
0040 
0041 #endif