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:

committed by
Kyle Edwards

parent
68a4d97da7
commit
c9af6f2ff6
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user