[clang-tools-extra] [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (PR #141410)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Mon May 26 02:19:49 PDT 2025


================
@@ -32,6 +32,9 @@
 # RUN: echo 'printf "End of search list.\r\n" >&2' >> %t.dir/bin/my_driver.sh
 # RUN: chmod +x %t.dir/bin/my_driver.sh
 
+# Create fake clang-tidy config to ensure sandbox
+# RUN: echo 'InheritParentConfig: false' >> %t.dir/.clang-tidy
----------------
kadircet wrote:

instead of this can you just pass `-clang-tidy=0` to `clangd` invocations in this file? we shouldn't be testing/relying on any clang-tidy behavior in this test file.

https://github.com/llvm/llvm-project/pull/141410


More information about the cfe-commits mailing list