================
@@ -89,7 +89,26 @@
config.substitutions.append(("%PATH%", config.environment["PATH"]))
+sed_cmd = (
+ "/opt/freeware/bin/sed" if "system-aix" in config.available_features else
"sed"
+)
+# Filtering command for testing SARIF output against reference output.
+config.substitutions.append(
+ (
+ "%normalize_sarif",
+ f"{sed_cmd} -r '%s;%s;%s;%s'"
+ % (
+ # Replace version strings that are likely to change.
+ r's/"version": "2.1.0"/"version": "[SARIF version]"/',
----------------
dbartol wrote:
It is still relevant for future-proofing. This way when we move to SARIF 2.2.0
(or whatever), we can just update this pattern here, rather than all of our
SARIF expectation files.
https://github.com/llvm/llvm-project/pull/168153
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits