Skip to content

Commit 6e977aa

Browse files
committed
[gn] port a513b70
1 parent fcf2c46 commit 6e977aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ write_cmake_config("clang-tidy-config") {
1818
values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=" ]
1919
}
2020

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
21+
# FIXME: Add option for this?
2322
values += [ "CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS=1" ]
2423

2524
# Let targets depending on this find the generated file.

llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ write_lit_config("lit_site_cfg") {
4646
extra_values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=0" ]
4747
}
4848

49+
# FIXME: Add option for this?
50+
extra_values += [ "CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS=1" ]
51+
4952
if (host_os == "mac") {
5053
extra_values += [ "LLVM_PLUGIN_EXT=.dylib" ]
5154
} else if (host_os == "win") {

0 commit comments

Comments
 (0)