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

clang-tidy module: add #pragma once check

Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
This commit is contained in:
Igor-Mikhail-Valentin Glebov
2022-11-16 14:30:20 -05:00
committed by Kyle Edwards
parent 68a4d97da7
commit c9af6f2ff6
4 changed files with 389 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#include "UseBespokeEnumClassCheck.h"
#include "UseCmstrlenCheck.h"
#include "UseCmsysFstreamCheck.h"
#include "UsePragmaOnceCheck.h"
namespace clang {
namespace tidy {
@@ -23,6 +24,7 @@ public:
"cmake-use-bespoke-enum-class");
CheckFactories.registerCheck<OstringstreamUseCmstrcatCheck>(
"cmake-ostringstream-use-cmstrcat");
CheckFactories.registerCheck<UsePragmaOnceCheck>("cmake-use-pragma-once");
}
};