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

clang-tidy module: add check for cmStrLen()

Co-Authored-by: Joe Blaauboer <jblaauboer67@gmail.com>
This commit is contained in:
Kyle Edwards
2022-09-14 14:24:16 -04:00
parent 76ab7db5a1
commit 43a88b56af
4 changed files with 61 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
#include <clang-tidy/ClangTidyModule.h>
#include <clang-tidy/ClangTidyModuleRegistry.h>
#include "UseCmstrlenCheck.h"
namespace clang {
namespace tidy {
namespace cmake {
@@ -11,7 +13,7 @@ class CMakeClangTidyModule : public ClangTidyModule
public:
void addCheckFactories(ClangTidyCheckFactories& CheckFactories) override
{
// TODO
CheckFactories.registerCheck<UseCmstrlenCheck>("cmake-use-cmstrlen");
}
};