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 | 10ad081fc67c027d54fcd3133697eb0f2d0dfe00 (patch) | |
tree | fea20a5c6b0254f9eec832e0ae80c26fdf747094 /clang/test/Analysis/Malloc+NewDelete_intersections.cpp | |
parent | 26330563f27a93b9c0a0639a3e4f4cf538aa54fe (diff) | |
download | bcm5719-llvm-10ad081fc67c027d54fcd3133697eb0f2d0dfe00.tar.gz bcm5719-llvm-10ad081fc67c027d54fcd3133697eb0f2d0dfe00.zip |
[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.
llvm-svn: 178891
Diffstat (limited to 'clang/test/Analysis/Malloc+NewDelete_intersections.cpp')
-rw-r--r-- | clang/test/Analysis/Malloc+NewDelete_intersections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/Malloc+NewDelete_intersections.cpp b/clang/test/Analysis/Malloc+NewDelete_intersections.cpp index 272813d47bb..5ce9e3c5353 100644 --- a/clang/test/Analysis/Malloc+NewDelete_intersections.cpp +++ b/clang/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); |