[cfe-commits] r74095 - in /cfe/trunk/www/analyzer: annotations.html images/ images/example_ns_returns_retained.png
Ted Kremenek
kremenek at apple.com
Wed Jun 24 11:50:36 PDT 2009
Author: kremenek
Date: Wed Jun 24 13:50:14 2009
New Revision: 74095
URL: http://llvm.org/viewvc/llvm-project?rev=74095&view=rev
Log:
Replace 'clang --analyze' example (in text) with screenshot from scan-build.
Added:
cfe/trunk/www/analyzer/images/
cfe/trunk/www/analyzer/images/example_ns_returns_retained.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=74095&r1=74094&r2=74095&view=diff
==============================================================================
--- cfe/trunk/www/analyzer/annotations.html (original)
+++ cfe/trunk/www/analyzer/annotations.html Wed Jun 24 13:50:14 2009
@@ -174,15 +174,12 @@
return [[NSString alloc] initWithCString:"flag a leak"];
}
@end
-
-<span class="command">$ clang --analyze test.m</span>
-$ clang --analyze test.m
-test.m:21:10: warning: Potential leak of an object allocated on line 21
- return [[NSString alloc] initWithCString:"flag a leak"];
- ^
-1 diagnostic generated.
</pre>
+<p>Running <tt>scan-build</tt> on this source file produces the following output:</p>
+
+<img src="images/example_ns_returns_retained.png">
+
<h4 id="attr_cf_returns_retained">Attribute 'cf_returns_retained'
(Clang-specific)</h4>
Added: cfe/trunk/www/analyzer/images/example_ns_returns_retained.png
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/images/example_ns_returns_retained.png?rev=74095&view=auto
==============================================================================
Binary file - no diff available.
Propchange: cfe/trunk/www/analyzer/images/example_ns_returns_retained.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the cfe-commits
mailing list