aboutsummaryrefslogtreecommitdiff
path: root/subprojects/lix-clang-tidy/LixClangTidyChecks.cc
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-08-08 23:09:30 +0000
committerGerrit Code Review <gerrit@localhost>2024-08-08 23:09:30 +0000
commit9682ab4f3859ca60b0b4525452b27297e31cb751 (patch)
tree140cf7817556db65c80693f8b89a76c722b6d726 /subprojects/lix-clang-tidy/LixClangTidyChecks.cc
parent757041c3e74787c755b3de826078968119f706d6 (diff)
parenta5f0954c290157875b4dfb79edcf651f55742dc2 (diff)
Merge changes I6358a393,I2d9f276b,Idd096dc9 into main
* changes: clang-tidy: write a lint for charptr_cast tree-wide: automated migration to charptr_cast clang-tidy: enforce the new rules
Diffstat (limited to 'subprojects/lix-clang-tidy/LixClangTidyChecks.cc')
-rw-r--r--subprojects/lix-clang-tidy/LixClangTidyChecks.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/subprojects/lix-clang-tidy/LixClangTidyChecks.cc b/subprojects/lix-clang-tidy/LixClangTidyChecks.cc
index b3503dd3a..283e0e7c8 100644
--- a/subprojects/lix-clang-tidy/LixClangTidyChecks.cc
+++ b/subprojects/lix-clang-tidy/LixClangTidyChecks.cc
@@ -2,6 +2,7 @@
#include <clang-tidy/ClangTidyModuleRegistry.h>
#include "FixIncludes.hh"
#include "HasPrefixSuffix.hh"
+#include "CharPtrCast.hh"
namespace nix::clang_tidy {
using namespace clang;
@@ -12,6 +13,7 @@ class NixClangTidyChecks : public ClangTidyModule {
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
CheckFactories.registerCheck<HasPrefixSuffixCheck>("lix-hasprefixsuffix");
CheckFactories.registerCheck<FixIncludesCheck>("lix-fixincludes");
+ CheckFactories.registerCheck<CharPtrCastCheck>("lix-charptrcast");
}
};