/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include #include #include "OstringstreamUseCmstrcatCheck.h" #include "StringConcatenationUseCmstrcatCheck.h" #include "UseBespokeEnumClassCheck.h" #include "UseCmstrlenCheck.h" #include "UseCmsysFstreamCheck.h" #include "UsePragmaOnceCheck.h" namespace clang { namespace tidy { namespace cmake { class CMakeClangTidyModule : public ClangTidyModule { public: void addCheckFactories(ClangTidyCheckFactories& CheckFactories) override { CheckFactories.registerCheck("cmake-use-cmstrlen"); CheckFactories.registerCheck( "cmake-use-cmsys-fstream"); CheckFactories.registerCheck( "cmake-use-bespoke-enum-class"); CheckFactories.registerCheck( "cmake-ostringstream-use-cmstrcat"); CheckFactories.registerCheck("cmake-use-pragma-once"); CheckFactories.registerCheck( "cmake-string-concatenation-use-cmstrcat"); } }; static ClangTidyModuleRegistry::Add X( "cmake-clang-tidy", "Adds lint checks for the CMake code base."); } } }