diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-04-05 17:55:07 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-04-05 17:55:07 +0000 |
commit | e449edc5bdace60f9d754c32abc5459bc7d94a14 (patch) | |
tree | bf3ed7d5492620243d556a336546f4d9d31fb040 /test/Analysis/Malloc+NewDelete_intersections.cpp | |
parent | e85deb356f5d2d2172b7ef70314bc9cfc742a936 (diff) |
[analyzer] Re-enable cplusplus.NewDelete (but not NewDeleteLeaks).
As mentioned in the previous commit message, the use-after-free and
double-free warnings for 'delete' are worth enabling even while the
leak warnings still have false positives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/Malloc+NewDelete_intersections.cpp')
-rw-r--r-- | test/Analysis/Malloc+NewDelete_intersections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/Malloc+NewDelete_intersections.cpp b/test/Analysis/Malloc+NewDelete_intersections.cpp index 272813d47b..5ce9e3c535 100644 --- a/test/Analysis/Malloc+NewDelete_intersections.cpp +++ b/test/Analysis/Malloc+NewDelete_intersections.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,alpha.cplusplus.NewDelete -std=c++11 -verify %s -// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,alpha.cplusplus.NewDelete,alpha.cplusplus.NewDeleteLeaks -std=c++11 -verify %s +// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,cplusplus.NewDelete -std=c++11 -verify %s +// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,cplusplus.NewDelete,alpha.cplusplus.NewDeleteLeaks -std=c++11 -verify %s typedef __typeof(sizeof(int)) size_t; void *malloc(size_t); |