From 6e9a8c961d7e23930034495b2341862d85ca3257 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 14 Jul 2025 18:47:00 +0000 Subject: [PATCH] Run --verify-config separately Turns out this option doesn't run checks, it _only_ checks the config. --- clang_tidy/clang_tidy_test.bzl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang_tidy/clang_tidy_test.bzl b/clang_tidy/clang_tidy_test.bzl index 17ae16f..9028fff 100644 --- a/clang_tidy/clang_tidy_test.bzl +++ b/clang_tidy/clang_tidy_test.bzl @@ -67,14 +67,16 @@ fi ln -s .. external +"$bin" --quiet --verify-config + has_srcs=false if [[ -n "{c_sources}" ]]; then - "$bin" --quiet --verify-config --export-fixes $TEST_UNDECLARED_OUTPUTS_DIR/cfixes.yaml {c_sources} -- {c_flags} + "$bin" --quiet --export-fixes $TEST_UNDECLARED_OUTPUTS_DIR/cfixes.yaml {c_sources} -- {c_flags} has_srcs=true fi if [[ -n "{cxx_sources}" ]]; then - "$bin" --quiet --verify-config --export-fixes $TEST_UNDECLARED_OUTPUTS_DIR/cxxfixes.yaml {cxx_sources} -- {cxx_flags} + "$bin" --quiet --export-fixes $TEST_UNDECLARED_OUTPUTS_DIR/cxxfixes.yaml {cxx_sources} -- {cxx_flags} has_srcs=true fi