From efec16307ccc3c1ed8a5e223cf075e51198e6376 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Thu, 22 Oct 2015 11:53:04 +0000 Subject: [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 --- clang/test/Analysis/MismatchedDeallocator-path-notes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/test/Analysis/MismatchedDeallocator-path-notes.cpp') 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: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' // CHECK-NEXT: categoryMemory Error // CHECK-NEXT: typeBad deallocator -// CHECK-NEXT: check_nameunix.MismatchedDeallocator +// CHECK-NEXT: check_nameunix.MismatchedDeallocator +// CHECK-NEXT: +// CHECK-NEXT: issue_hash_content_of_line_in_context2009ca1da75217064b6052ba7465dff9 // CHECK-NEXT: issue_context_kindfunction // CHECK-NEXT: issue_contexttest -// CHECK-NEXT: issue_hash4 +// CHECK-NEXT: issue_hash_function_offset4 // CHECK-NEXT: location // CHECK-NEXT: // CHECK-NEXT: line13 -- cgit v1.2.3