From: Dmitri Gribenko Date: Sat, 6 Oct 2012 16:59:15 +0000 (+0000) Subject: List of potential checkers: more C++11 details for the smart pointer checker. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9074fbe1890717e575d833fc4f131ee018ac4028;p=clang List of potential checkers: more C++11 details for the smart pointer checker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/www/analyzer/potential_checkers.html b/www/analyzer/potential_checkers.html index 3da3c66f52..85155c095c 100644 --- a/www/analyzer/potential_checkers.html +++ b/www/analyzer/potential_checkers.html @@ -266,10 +266,12 @@ void f() throw(int) { Name, DescriptionExampleProgress -smartptr.AutoPtrInit
-(C++03)


-auto_ptr should store a pointer to an object obtained via new as allocated -memory will be cleaned using delete +smartptr.SmartPtrInit
+(C++)


+C++03: auto_ptr should store a pointer to an object obtained via new as allocated +memory will be cleaned using delete
+C++11: unique_ptr and shared_ptr allow +to specify a custom deleter to handle the new[]/delete[] case correctly
 #include <stdlib.h>
 #include <memory>