https://github.com/google-yfyang created 
https://github.com/llvm/llvm-project/pull/170895

#157306 removes some default checks and this breaks a few tests where no checks 
were explicitly specified. 

>From 8971c951549c9068917e49b00459e89dcbb55c76 Mon Sep 17 00:00:00 2001
From: google-yfyang <[email protected]>
Date: Fri, 5 Dec 2025 13:12:50 -0500
Subject: [PATCH] Add checks to tests that have no checks specified.

---
 .../test/clang-tidy/infrastructure/empty-database.cpp           | 2 +-
 .../test/clang-tidy/infrastructure/invalid-database.cpp         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/clang-tools-extra/test/clang-tidy/infrastructure/empty-database.cpp 
b/clang-tools-extra/test/clang-tidy/infrastructure/empty-database.cpp
index c4c504c95d475..0331dccd2ce82 100644
--- a/clang-tools-extra/test/clang-tidy/infrastructure/empty-database.cpp
+++ b/clang-tools-extra/test/clang-tidy/infrastructure/empty-database.cpp
@@ -1,5 +1,5 @@
 // UNSUPPORTED: system-windows
 
-// RUN: clang-tidy -p %S/Inputs/empty-database %s 2>&1 | FileCheck %s
+// RUN: clang-tidy -checks='-*,clang-analyzer-*' -p %S/Inputs/empty-database 
%s 2>&1 | FileCheck %s
 
 // CHECK: 'directory' field of compilation database is empty; using the 
current working directory instead.
diff --git 
a/clang-tools-extra/test/clang-tidy/infrastructure/invalid-database.cpp 
b/clang-tools-extra/test/clang-tidy/infrastructure/invalid-database.cpp
index 7935385c1a35a..ea9e1029706e2 100644
--- a/clang-tools-extra/test/clang-tidy/infrastructure/invalid-database.cpp
+++ b/clang-tools-extra/test/clang-tidy/infrastructure/invalid-database.cpp
@@ -1,5 +1,5 @@
 // UNSUPPORTED: system-windows
 
-// RUN: not --crash clang-tidy -p %S/Inputs/invalid-database %s 2>&1 | 
FileCheck %s
+// RUN: not --crash clang-tidy -checks='-*,clang-analyzer-*' -p 
%S/Inputs/invalid-database %s 2>&1 | FileCheck %s
 
 // CHECK: LLVM ERROR: Cannot chdir into "/invalid/"!

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

Reply via email to