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:
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user