1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-21 14:40:48 +08:00

clang-tidy module: add check for boolean parameters

Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
This commit is contained in:
Sean Orner
2022-11-04 15:57:11 -04:00
committed by Kyle Edwards
parent 0c71f3c943
commit eab8e38961
7 changed files with 143 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include <clang-tidy/ClangTidyModule.h>
#include <clang-tidy/ClangTidyModuleRegistry.h>
#include "UseBespokeEnumClassCheck.h"
#include "UseCmstrlenCheck.h"
#include "UseCmsysFstreamCheck.h"
@@ -17,6 +18,8 @@ public:
CheckFactories.registerCheck<UseCmstrlenCheck>("cmake-use-cmstrlen");
CheckFactories.registerCheck<UseCmsysFstreamCheck>(
"cmake-use-cmsys-fstream");
CheckFactories.registerCheck<UseBespokeEnumClassCheck>(
"cmake-use-bespoke-enum-class");
}
};