[PATCH] D135896: [clang] Fix clang version check in SARIF diagnostics test

Yabin Cui via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 10:41:49 PDT 2022


yabinc created this revision.
Herald added a project: All.
yabinc requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is to allow future clang versions and use of LLVM_VERSION_PATCH.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135896

Files:
  clang/test/Frontend/sarif-diagnostics.cpp


Index: clang/test/Frontend/sarif-diagnostics.cpp
===================================================================
--- clang/test/Frontend/sarif-diagnostics.cpp
+++ clang/test/Frontend/sarif-diagnostics.cpp
@@ -64,5 +64,5 @@
 // CHECK: {"enabled":true,"level":"error","rank":50},"fullDescription":{"text":""},"id":"{{[0-9]+}}","name":""},{"defaultConfiguration":
 // CHECK: {"enabled":true,"level":"error","rank":50},"fullDescription":{"text":""},"id":"{{[0-9]+}}","name":""},{"defaultConfiguration":
 // CHECK: {"enabled":true,"level":"error","rank":50},"fullDescription":
-// CHECK: {"text":""},"id":"{{[0-9]+}}","name":""}],"version":"16.0.0"}}}],"version":"2.1.0"}
+// CHECK: {"text":""},"id":"{{[0-9]+}}","name":""}],"version":"{{[0-9]+\.[0-9]+\.[0-9]+}}"}}}],"version":"2.1.0"}
 // CHECK: 2 warnings and 6 errors generated.
\ No newline at end of file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135896.467532.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221013/a717e564/attachment.bin>


More information about the cfe-commits mailing list