summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-06-24 18:50:14 +0000
committerTed Kremenek <kremenek@apple.com>2009-06-24 18:50:14 +0000
commit645c54ef11e5ac4b8b2075036ecd76871fc60305 (patch)
treec79f7d179019aed277ff2febbba418819e4bfbe1
parenta297e0c9b1c64cee1acfad36faf3bd720c40cbb5 (diff)
downloadbcm5719-llvm-645c54ef11e5ac4b8b2075036ecd76871fc60305.tar.gz
bcm5719-llvm-645c54ef11e5ac4b8b2075036ecd76871fc60305.zip
Replace 'clang --analyze' example (in text) with screenshot from scan-build.
llvm-svn: 74095
-rw-r--r--clang/www/analyzer/annotations.html11
-rw-r--r--clang/www/analyzer/images/example_ns_returns_retained.pngbin0 -> 40406 bytes
2 files changed, 4 insertions, 7 deletions
diff --git a/clang/www/analyzer/annotations.html b/clang/www/analyzer/annotations.html
index 129748e9b0c..f76dbee12ae 100644
--- a/clang/www/analyzer/annotations.html
+++ b/clang/www/analyzer/annotations.html
@@ -174,15 +174,12 @@ use 'cf_returns_retained'.</p>
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>
diff --git a/clang/www/analyzer/images/example_ns_returns_retained.png b/clang/www/analyzer/images/example_ns_returns_retained.png
new file mode 100644
index 00000000000..61316e19fee
--- /dev/null
+++ b/clang/www/analyzer/images/example_ns_returns_retained.png
Binary files differ
OpenPOWER on IntegriCloud