aboutsummaryrefslogtreecommitdiff
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
commit7d277e25e085c4905bc11e7fbc377253d9fb0177 (patch)
treea90c5d46fb4de1245d2637f568ff417f31fa724e
parent6fd634f4ac59f5923cffadadb99d19f23c18707a (diff)
Replace 'clang --analyze' example (in text) with screenshot from scan-build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74095 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--www/analyzer/annotations.html11
-rw-r--r--www/analyzer/images/example_ns_returns_retained.pngbin0 -> 40406 bytes
2 files changed, 4 insertions, 7 deletions
diff --git a/www/analyzer/annotations.html b/www/analyzer/annotations.html
index 129748e9b0..f76dbee12a 100644
--- a/www/analyzer/annotations.html
+++ b/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/www/analyzer/images/example_ns_returns_retained.png b/www/analyzer/images/example_ns_returns_retained.png
new file mode 100644
index 0000000000..61316e19fe
--- /dev/null
+++ b/www/analyzer/images/example_ns_returns_retained.png
Binary files differ