summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2015-10-22 11:53:04 +0000
committerGabor Horvath <xazax.hun@gmail.com>2015-10-22 11:53:04 +0000
commitefec16307ccc3c1ed8a5e223cf075e51198e6376 (patch)
tree7fa5860179c42803cae91d27a71db7aadb6000c4 /clang/test/Analysis/MismatchedDeallocator-path-notes.cpp
parentb91bee06deefe77a51d0a39b06c086df19aec82c (diff)
downloadbcm5719-llvm-efec16307ccc3c1ed8a5e223cf075e51198e6376.tar.gz
bcm5719-llvm-efec16307ccc3c1ed8a5e223cf075e51198e6376.zip
[analyzer] Bug identification
This patch adds hashes to the plist and html output to be able to identfy bugs for suppressing false positives or diff results against a baseline. This hash aims to be resilient for code evolution and is usable to identify bugs in two different snapshots of the same software. One missing piece however is a permanent unique identifier of the checker that produces the warning. Once that issue is resolved, the hashes generated are going to change. Until that point this feature is marked experimental, but it is suitable for early adoption. Differential Revision: http://reviews.llvm.org/D10305 Original patch by: Bence Babati! llvm-svn: 251011
Diffstat (limited to 'clang/test/Analysis/MismatchedDeallocator-path-notes.cpp')
-rw-r--r--clang/test/Analysis/MismatchedDeallocator-path-notes.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp b/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp
index af24197f13e..1c8c80cf21b 100644
--- a/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp
+++ b/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp
@@ -289,10 +289,12 @@ void test() {
// CHECK-NEXT: <key>description</key><string>Memory allocated by &apos;new[]&apos; should be deallocated by &apos;delete[]&apos;, not &apos;delete&apos;</string>
// CHECK-NEXT: <key>category</key><string>Memory Error</string>
// CHECK-NEXT: <key>type</key><string>Bad deallocator</string>
-// CHECK-NEXT: <key>check_name</key><string>unix.MismatchedDeallocator</string>
+// CHECK-NEXT: <key>check_name</key><string>unix.MismatchedDeallocator</string>
+// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
+// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>2009ca1da75217064b6052ba7465dff9</string>
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
// CHECK-NEXT: <key>issue_context</key><string>test</string>
-// CHECK-NEXT: <key>issue_hash</key><string>4</string>
+// CHECK-NEXT: <key>issue_hash_function_offset</key><string>4</string>
// CHECK-NEXT: <key>location</key>
// CHECK-NEXT: <dict>
// CHECK-NEXT: <key>line</key><integer>13</integer>
OpenPOWER on IntegriCloud