mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 14:40:48 +08:00
25 lines
679 B
C++
25 lines
679 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#include <clang-tidy/ClangTidyModule.h>
|
|
#include <clang-tidy/ClangTidyModuleRegistry.h>
|
|
|
|
#include "UseCmstrlenCheck.h"
|
|
|
|
namespace clang {
|
|
namespace tidy {
|
|
namespace cmake {
|
|
class CMakeClangTidyModule : public ClangTidyModule
|
|
{
|
|
public:
|
|
void addCheckFactories(ClangTidyCheckFactories& CheckFactories) override
|
|
{
|
|
CheckFactories.registerCheck<UseCmstrlenCheck>("cmake-use-cmstrlen");
|
|
}
|
|
};
|
|
|
|
static ClangTidyModuleRegistry::Add<CMakeClangTidyModule> X(
|
|
"cmake-clang-tidy", "Adds lint checks for the CMake code base.");
|
|
}
|
|
}
|
|
}
|