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/NewDelete-path-notes.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/NewDelete-path-notes.cpp')
-rw-r--r-- | test/Analysis/NewDelete-path-notes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/NewDelete-path-notes.cpp b/test/Analysis/NewDelete-path-notes.cpp index eeb610537b..83e6e9f06a 100644 --- a/test/Analysis/NewDelete-path-notes.cpp +++ b/test/Analysis/NewDelete-path-notes.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.cplusplus.NewDelete,unix.Malloc -analyzer-output=text -verify %s -// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.cplusplus.NewDelete,unix.Malloc -analyzer-output=plist %s -o %t.plist +// RUN: %clang_cc1 -analyze -analyzer-checker=cplusplus.NewDelete,unix.Malloc -analyzer-output=text -verify %s +// RUN: %clang_cc1 -analyze -analyzer-checker=cplusplus.NewDelete,unix.Malloc -analyzer-output=plist %s -o %t.plist // RUN: FileCheck --input-file=%t.plist %s void test() { |