[cfe-commits] r74104 - in /cfe/trunk/www/analyzer: annotations.html images/example_attribute_nonnull.png

Ted Kremenek kremenek at apple.com
Wed Jun 24 12:18:09 PDT 2009


Author: kremenek
Date: Wed Jun 24 14:17:54 2009
New Revision: 74104

URL: http://llvm.org/viewvc/llvm-project?rev=74104&view=rev
Log:
Add scan-build screenshot for attribute 'nonnull' example.

Added:
    cfe/trunk/www/analyzer/images/example_attribute_nonnull.png   (with props)
Modified:
    cfe/trunk/www/analyzer/annotations.html

Modified: cfe/trunk/www/analyzer/annotations.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/annotations.html?rev=74104&r1=74103&r2=74104&view=diff

==============================================================================
--- cfe/trunk/www/analyzer/annotations.html (original)
+++ cfe/trunk/www/analyzer/annotations.html Wed Jun 24 14:17:54 2009
@@ -90,14 +90,13 @@
    return !p ? bar(q, 2, p) 
              : bar(p, 2, q);
 }
-
-<span class="command">$ clang --analyze test.m</span>
-test.m:4:16: warning: Null pointer passed as an argument to a 'nonnull' parameter
-   return !p ? bar(q, 2, p) 
-               ^         ~
-1 diagnostic generated.
 </pre>
 
+<p>Running <tt>scan-build</tt> over this source produces the following
+output:</p>
+
+<img src="images/example_cf_returns_retained_gc.png">
+
 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 <h2 id="macosx">Mac OS X API Annotations</h2>
 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

Added: cfe/trunk/www/analyzer/images/example_attribute_nonnull.png
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/images/example_attribute_nonnull.png?rev=74104&view=auto

==============================================================================
Binary file - no diff available.

Propchange: cfe/trunk/www/analyzer/images/example_attribute_nonnull.png

------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream





More information about the cfe-commits mailing list