]> granicus.if.org Git - clang/commit
Fix text range end columns in SARIF to be exclusive
authorJoe Ranieri <jranieri@grammatech.com>
Tue, 27 Aug 2019 13:49:45 +0000 (13:49 +0000)
committerJoe Ranieri <jranieri@grammatech.com>
Tue, 27 Aug 2019 13:49:45 +0000 (13:49 +0000)
commit3e6e5dd4b5330935fbdf866395fade004f61171a
tree3b61321cc89aba2108a0a7a330095548c8c77730
parentb878e9c7aed91ae4a4440c935be18be149cb4bc6
Fix text range end columns in SARIF to be exclusive

According to the SARIF specification, "a text region does not include the character specified by endColumn".

Differential Revision: https://reviews.llvm.org/D65206

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif
test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif