r179426 - NewDeleteLeaks is a subchecker of NewDelete checker; it is tested in NewDelete-checker-test.cpp

Anton Yartsev anton.yartsev at gmail.com
Fri Apr 12 16:18:46 PDT 2013


Author: ayartsev
Date: Fri Apr 12 18:18:46 2013
New Revision: 179426

URL: http://llvm.org/viewvc/llvm-project?rev=179426&view=rev
Log:
NewDeleteLeaks is a subchecker of NewDelete checker; it is tested in NewDelete-checker-test.cpp

Removed:
    cfe/trunk/test/Analysis/NewDeleteLeaks-checker-test.cpp

Removed: cfe/trunk/test/Analysis/NewDeleteLeaks-checker-test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/NewDeleteLeaks-checker-test.cpp?rev=179425&view=auto
==============================================================================
--- cfe/trunk/test/Analysis/NewDeleteLeaks-checker-test.cpp (original)
+++ cfe/trunk/test/Analysis/NewDeleteLeaks-checker-test.cpp (removed)
@@ -1,28 +0,0 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.cplusplus.NewDeleteLeaks -std=c++11 -fblocks -verify %s
-#include "Inputs/system-header-simulator-cxx.h"
-
-//----- Standard non-placement operators
-void testGlobalOpNew() {
-  void *p = operator new(0);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalOpNewArray() {
-  void *p = operator new[](0);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNewExpr() {
-  int *p = new int;
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNewExprArray() {
-  int *p = new int[0];
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-//----- Standard nothrow placement operators
-void testGlobalNoThrowPlacementOpNewBeforeOverload() {
-  void *p = operator new(0, std::nothrow);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNoThrowPlacementExprNewBeforeOverload() {
-  int *p = new(std::nothrow) int;
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}





More information about the cfe-commits mailing list