]> granicus.if.org Git - clang/commitdiff
[analyzer] SARIF: Suppress version testing in a more downstream-friendly manner.
authorArtem Dergachev <artem.dergachev@gmail.com>
Thu, 1 Nov 2018 01:27:01 +0000 (01:27 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 1 Nov 2018 01:27:01 +0000 (01:27 +0000)
No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345807 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif
test/Analysis/diagnostics/sarif-diagnostics-taint-test.c

index 965bcb9a382173417f96559695e0a77a93946abf..a6b348258faec968a9991bf7d0999a4c2e63fd72 100644 (file)
@@ -7,7 +7,7 @@
           "fileLocation": {
             "uri": "file:sarif-diagnostics-taint-test.c"
           },
-          "length": 500,
+          "length": 497,
           "mimeType": "text/plain",
           "roles": [
             "resultFile"
index 3edbc34516dfa59efa23af2c2fa411901928d0c2..8b8787099208204cd61c0f396bc74a3bcf44b89e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify -analyzer-output=sarif -o - | diff -U1 -w -I ".*file:.*sarif-diagnostics-taint-test.c" -I "clang version" -I "2\.0\.0\-beta\." - %S/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif
+// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify -analyzer-output=sarif -o - | diff -U1 -w -I ".*file:.*sarif-diagnostics-taint-test.c" -I '"version":' -I "2\.0\.0\-beta\." - %S/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif
 #include "../Inputs/system-header-simulator.h"
 
 int atoi(const char *nptr);