1 /* 2 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef CLANGTIDY_CHECKSET_H 8 #define CLANGTIDY_CHECKSET_H 9 10 // Qt 11 #include <QStringList> 12 13 namespace ClangTidy 14 { 15 16 /** 17 * \brief Provides all available checks by running clang-tidy with the following parameters: "--checks=* 18 * --list-checks". 19 */ 20 class CheckSet 21 { 22 public: 23 CheckSet() = default; 24 25 public: 26 /** 27 * @param path the system path for the clang-tidy program. 28 */ 29 void setClangTidyPath(const QString& path); 30 all()31 const QStringList &all() const { return m_allChecks; } 32 QStringList defaults() const; 33 34 private: 35 QString m_clangTidyPath; 36 QStringList m_allChecks; 37 }; 38 39 } 40 41 #endif 42