Author: google-yfyang Date: 2025-12-05T12:59:21-06:00 New Revision: 5e4974fbd330733ceaabba988b632cd8906e892a
URL: https://github.com/llvm/llvm-project/commit/5e4974fbd330733ceaabba988b632cd8906e892a DIFF: https://github.com/llvm/llvm-project/commit/5e4974fbd330733ceaabba988b632cd8906e892a.diff LOG: [clang-tidy][NFC] Add checks to tests that have no checks specified. (#170895) #157306 removes some default checks and this breaks a few tests where no checks were explicitly specified. Added: Modified: clang-tools-extra/test/clang-tidy/infrastructure/empty-database.cpp clang-tools-extra/test/clang-tidy/infrastructure/invalid-database.cpp Removed: ################################################################################ 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
