https://github.com/matthew-j-code created 
https://github.com/llvm/llvm-project/pull/244927

[clang-tidy] Fix SARIF test missing '--'

export-SARIF-diagnostics-macro-thread-flows.cpp was missing a "--" that caused 
this test to fail.

>From ae2e5e5de8589d824437787dfa89eb153cf7a9ea Mon Sep 17 00:00:00 2001
From: "Jones, Matthew (DI SW SIM FRWK PLAT SIMFW HPC)"
 <[email protected]>
Date: Sat, 21 Nov 2026 11:50:32 -0800
Subject: [PATCH] [clang-tidy] Fix SARIF test missing '--'

---
 .../export-SARIF-diagnostics-macro-thread-flows.cpp             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
 
b/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
index 1db2806a8db568..565b34536d314f 100644
--- 
a/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
+++ 
b/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
@@ -1,5 +1,5 @@
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t-input.cpp
-// RUN: clang-tidy %t-input.cpp -checks='-*,clang-analyzer-*' 
--experimental-sarif-export=%t.sarif > %t.msg 2>&1
+// RUN: clang-tidy %t-input.cpp -checks='-*,clang-analyzer-*' 
--experimental-sarif-export=%t.sarif -- > %t.msg 2>&1
 // RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES %s 
-implicit-check-not='{{warning|error|note}}:'
 // RUN: FileCheck -input-file=%t.sarif -check-prefix=CHECK-SARIF %s
 #define DEREF(p) (*(p))

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

Reply via email to