https://github.com/vbvictor created 
https://github.com/llvm/llvm-project/pull/171029

When working on tests, `clangd` with option `--clang-tidy` will report warnings 
from "root" clang-tidy config.
I believe these warnings serve no purpose in tests, so we better disable them.

>From 32c62fa15c3c89af9eb7abc0f750cded2eebd8ba Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Sun, 7 Dec 2025 14:08:39 +0300
Subject: [PATCH 1/2] [clang-tidy][NFC] Add empty .clang-tidy in tests to
 warnings in ide

---
 clang-tools-extra/test/clang-tidy/.clang-tidy | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 clang-tools-extra/test/clang-tidy/.clang-tidy

diff --git a/clang-tools-extra/test/clang-tidy/.clang-tidy 
b/clang-tools-extra/test/clang-tidy/.clang-tidy
new file mode 100644
index 0000000000000..230d0786103b3
--- /dev/null
+++ b/clang-tools-extra/test/clang-tidy/.clang-tidy
@@ -0,0 +1 @@
+Checks: '-*'
\ No newline at end of file

>From 45f1a0ce1e5c3bb7987c473cf9d749166cffff63 Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Sun, 7 Dec 2025 14:09:43 +0300
Subject: [PATCH 2/2] ~

---
 clang-tools-extra/test/clang-tidy/.clang-tidy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang-tools-extra/test/clang-tidy/.clang-tidy 
b/clang-tools-extra/test/clang-tidy/.clang-tidy
index 230d0786103b3..612bd0ee8de8a 100644
--- a/clang-tools-extra/test/clang-tidy/.clang-tidy
+++ b/clang-tools-extra/test/clang-tidy/.clang-tidy
@@ -1 +1 @@
-Checks: '-*'
\ No newline at end of file
+Checks: '-*'

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to