List of potential checkers: more C++11 details for the smart pointer checker.

llvm-svn: 165363
This commit is contained in:
Dmitri Gribenko 2012-10-06 16:59:15 +00:00
parent a801f4a81d
commit a124d76ed1
1 changed files with 6 additions and 4 deletions
clang/www/analyzer

View File

@ -266,10 +266,12 @@ void f() throw(int) {
<col class="namedescr"><col class="example"><col class="progress"> <col class="namedescr"><col class="example"><col class="progress">
<thead><tr><td>Name, Description</td><td>Example</td><td>Progress</td></tr></thead> <thead><tr><td>Name, Description</td><td>Example</td><td>Progress</td></tr></thead>
<tr><td><span class="name">smartptr.AutoPtrInit<br> <tr><td><span class="name">smartptr.SmartPtrInit<br>
(C++03)</span><br><br> (C++)</span><br><br>
auto_ptr should store a pointer to an object obtained via new as allocated C++03: auto_ptr should store a pointer to an object obtained via new as allocated
memory will be cleaned using delete memory will be cleaned using delete<br>
C++11: unique_ptr and shared_ptr allow
to specify a custom deleter to handle the new[]/delete[] case correctly
</td><td><pre> </td><td><pre>
#include &lt;stdlib.h&gt; #include &lt;stdlib.h&gt;
#include &lt;memory&gt; #include &lt;memory&gt;