<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 3:30 AM, Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre@debian.org" target="_blank">sylvestre@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: sylvestre<br>
Date: Fri Dec 13 05:30:23 2013<br>
New Revision: 197225<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=197225&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=197225&view=rev</a><br>
Log:<br>
Improve the 3.4 release notes about the static analyzer new features<br>
<br>
Modified:<br>
    cfe/branches/release_34/docs/ReleaseNotes.rst<br>
<br>
Modified: cfe/branches/release_34/docs/ReleaseNotes.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/branches/release_34/docs/ReleaseNotes.rst?rev=197225&r1=197224&r2=197225&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/branches/release_34/docs/ReleaseNotes.rst?rev=197225&r1=197224&r2=197225&view=diff</a><br>

==============================================================================<br>
--- cfe/branches/release_34/docs/ReleaseNotes.rst (original)<br>
+++ cfe/branches/release_34/docs/ReleaseNotes.rst Fri Dec 13 05:30:23 2013<br>
@@ -69,7 +69,7 @@ about them. The improvements since the 3<br>
 - Boolean increment, a deprecated feature, has own warning flag<br>
   -Wdeprecated-increment-bool, and is still part of -Wdeprecated.<br>
 - Clang errors on builtin enum increments and decrements.<br>
-- -Wloop-analysis now warns on for-loops which have the same increment or<br>
+- -Wloop-analysis now warns on for-loops which have the same increment or<br>
   decrement in the loop header as the last statement in the loop.<br>
 - -Wuninitialized now performs checking across field initializers to detect<br>
   when one field in used uninitialized in another field initialization.<br>
@@ -189,9 +189,48 @@ Static Analyzer<br>
 ---------------<br>
<br>
 The static analyzer (which contains additional code checking beyond compiler<br>
-warnings) has improved significantly in both in the core analysis engine and<br>
+warnings) has improved significantly in both in the core analysis engine and<br>
 also in the kinds of issues it can find.<br>
<br>
+For example, the static analyzer now manages the following cases:<br>
+<br>
+- Missing return after function pointer null check.<br></blockquote><div><br></div><div>Looks like this would be better described as "calling a function pointer that is known to be null"?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

+<br>
+.. code-block:: c<br>
+<br>
+  void foo(void (*f)(void)) {<br>
+    if (f)<br>
+        return;<br>
+    f();<br>
+  }<br>
+<br>
+- Detect when ``delete`` is used on an uninitialized variable.<br>
+<br>
+.. code-block:: c++<br>
+<br>
+  void foo() {<br>
+    int *x;<br>
+    delete[] x;<br>
+  }<br>
+<br>
+- Handle destructors for the argument to C++ ``delete``.<br>
+<br>
+.. code-block:: c++<br>
+<br>
+  class DerefClass{<br>
+  public:<br>
+    int *x;<br>
+    DerefClass() {}<br>
+    ~DerefClass() {*x = 1;}<br>
+  };<br>
+<br>
+  void testDoubleDeleteClassInstance() {<br>
+    DerefClass *foo = new DerefClass();<br>
+    delete foo;<br>
+    delete foo;<br></blockquote><div><br></div><div>Did you mean to include a double-deletion here?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

+  }<br>
+<br>
+<br>
 Clang Format<br>
 ------------<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-branch-commits mailing list<br>
<a href="mailto:llvm-branch-commits@cs.uiuc.edu">llvm-branch-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-branch-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-branch-commits</a><br>
</blockquote></div><br></div></div>