https://github.com/aengelke updated https://github.com/llvm/llvm-project/pull/191635
>From 7daf52c500a3130aac3f10759dafb2d0b6d7032b Mon Sep 17 00:00:00 2001 From: Alexis Engelke <[email protected]> Date: Sat, 11 Apr 2026 15:16:52 +0000 Subject: [PATCH 1/3] [spr] initial version Created using spr 1.3.8-wip --- .../test/clang-tidy/infrastructure/custom-query-check.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp index a57029908d3e4..1b541edb7cfe2 100644 --- a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp +++ b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp @@ -1,3 +1,5 @@ +// Broken due to https://github.com/llvm/llvm-project/issues/182526. +// UNSUPPORTED: * // sed command does not work as-is on Windows. // UNSUPPORTED: system-windows // REQUIRES: custom-check >From 17258af74d02bc9c4f928f551f89fc57eae99e2c Mon Sep 17 00:00:00 2001 From: Alexis Engelke <[email protected]> Date: Sat, 11 Apr 2026 15:32:07 +0000 Subject: [PATCH 2/3] lit syntax... Created using spr 1.3.8-wip --- .../test/clang-tidy/infrastructure/custom-query-check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp index 1b541edb7cfe2..cd01d7726fcfe 100644 --- a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp +++ b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp @@ -1,5 +1,5 @@ // Broken due to https://github.com/llvm/llvm-project/issues/182526. -// UNSUPPORTED: * +// UNSUPPORTED: {{.*}} // sed command does not work as-is on Windows. // UNSUPPORTED: system-windows // REQUIRES: custom-check >From f428a307c037c425fb84c80810bd90b379d6b3f8 Mon Sep 17 00:00:00 2001 From: Alexis Engelke <[email protected]> Date: Sat, 11 Apr 2026 17:24:53 +0000 Subject: [PATCH 3/3] add compile_commands.json instead Created using spr 1.3.8-wip --- .../test/clang-tidy/infrastructure/custom-query-check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp index cd01d7726fcfe..ad225e4d14f41 100644 --- a/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp +++ b/clang-tools-extra/test/clang-tidy/infrastructure/custom-query-check.cpp @@ -1,5 +1,3 @@ -// Broken due to https://github.com/llvm/llvm-project/issues/182526. -// UNSUPPORTED: {{.*}} // sed command does not work as-is on Windows. // UNSUPPORTED: system-windows // REQUIRES: custom-check @@ -7,6 +5,8 @@ // Using cqc-main.cpp in the hope that we don't have a file with that name in // our source tree. See: https://github.com/llvm/llvm-project/issues/182526 // RUN: sed -e "s:INPUT_DIR:%S/Inputs/custom-query-check:g" -e "s:OUT_DIR:%t:g" -e "s:MAIN_FILE:%s:g" %S/Inputs/custom-query-check/vfsoverlay.yaml > %t.yaml +// RUN: mkdir -p %t +// RUN: echo '[{"file": "cqc-main.cpp", "directory": "%t", "command": "clang++ -c cqc-main.cpp"}]' > %t/compile_commands.json // RUN: clang-tidy --experimental-custom-checks %t/cqc-main.cpp -checks='-*,custom-*' -vfsoverlay %t.yaml | FileCheck %s --check-prefix=CHECK-SAME-DIR // RUN: clang-tidy --experimental-custom-checks %t/subdir/cqc-main.cpp -checks='-*,custom-*' -vfsoverlay %t.yaml | FileCheck %s --check-prefix=CHECK-SUB-DIR-BASE // RUN: clang-tidy --experimental-custom-checks %t/subdir-override/cqc-main.cpp -checks='-*,custom-*' -vfsoverlay %t.yaml | FileCheck %s --check-prefix=CHECK-SUB-DIR-OVERRIDE _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
