-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathModule.cpp
More file actions
31 lines (23 loc) · 923 Bytes
/
Copy pathModule.cpp
File metadata and controls
31 lines (23 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-FileCopyrightText: 2025 Mike Crowe
// SPDX-License-Identifier: MIT
#include "clang-tidy/ClangTidyModule.h"
#include "clang-tidy/ClangTidyModuleRegistry.h"
#include "ModernizeNlohmannJsonExplicitConversionsCheck.h"
namespace {
using namespace clang::tidy;
class NlohmannJsonChecksModule : public ClangTidyModule
{
public:
void addCheckFactories(ClangTidyCheckFactories& CheckFactories) override
{
CheckFactories.registerCheck<clang::tidy::modernize::NlohmannJsonExplicitConversionsCheck>(
"modernize-nlohmann-json-explicit-conversions");
}
};
} // namespace
namespace clang::tidy {
// Register the module using this statically initialized variable.
static ClangTidyModuleRegistry::Add<::NlohmannJsonChecksModule> nlohmannJsonChecksInit(
"nlohmann-json-checks-module",
"Adds 'modernize-nlohmann-json-explicit-conversions' check.");
} // namespace clang::tidy