File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ write_cmake_config("clang-tidy-config") {
18
18
values += [ " CLANG_TIDY_ENABLE_STATIC_ANALYZER=" ]
19
19
}
20
20
21
+ # FIXME: Add a setting? Tests seem to fail when it's not set though:
22
+ # https://github.com/llvm/llvm-project/pull/131804#issuecomment-3312465207
23
+ values += [ " CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS=1" ]
24
+
21
25
# Let targets depending on this find the generated file.
22
26
public_configs = [ " :clang-tidy-config_Config" ]
23
27
}
@@ -73,6 +77,7 @@ group("all-checks") {
73
77
" //clang-tools-extra/clang-tidy/cert" ,
74
78
" //clang-tools-extra/clang-tidy/concurrency" ,
75
79
" //clang-tools-extra/clang-tidy/cppcoreguidelines" ,
80
+ " //clang-tools-extra/clang-tidy/custom" ,
76
81
" //clang-tools-extra/clang-tidy/darwin" ,
77
82
" //clang-tools-extra/clang-tidy/fuchsia" ,
78
83
" //clang-tools-extra/clang-tidy/google" ,
Original file line number Diff line number Diff line change
1
+ static_library (" custom" ) {
2
+ output_name = " clangTidyCustomModule"
3
+ configs += [ " //llvm/utils/gn/build:clang_code" ]
4
+ deps = [
5
+ " //clang-tools-extra/clang-query" ,
6
+ " //clang-tools-extra/clang-tidy" ,
7
+ " //clang-tools-extra/clang-tidy/utils" ,
8
+ " //llvm/lib/Support" ,
9
+ ]
10
+ sources = [
11
+ " CustomTidyModule.cpp" ,
12
+ " QueryCheck.cpp" ,
13
+ ]
14
+ }
You can’t perform that action at this time.
0 commit comments