summaryrefslogtreecommitdiffstats
path: root/clang/www/analyzer
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2018-11-02 16:02:10 +0000
committerKristof Umann <dkszelethus@gmail.com>2018-11-02 16:02:10 +0000
commit391b19c78a58846b750f589b97759a0dd2962f1b (patch)
tree87d6fe8169f01924b115f7ad49ccc01bea78abc1 /clang/www/analyzer
parentf1f351c985e0412673de61417af80b65f636acc6 (diff)
downloadbcm5719-llvm-391b19c78a58846b750f589b97759a0dd2962f1b.tar.gz
bcm5719-llvm-391b19c78a58846b750f589b97759a0dd2962f1b.zip
[analyzer] Put llvm.Conventions back in alpha
Interestingly, this many year old (when I last looked I remember 2010ish) checker was committed without any tests, so I thought I'd implement them, but I was shocked to see how I barely managed to get it working. The code is severely outdated, I'm not even sure it has ever been used, so I'd propose to move it back into alpha, and possibly even remove it. Differential Revision: https://reviews.llvm.org/D53856 llvm-svn: 345990
Diffstat (limited to 'clang/www/analyzer')
-rw-r--r--clang/www/analyzer/alpha_checks.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/clang/www/analyzer/alpha_checks.html b/clang/www/analyzer/alpha_checks.html
index d6aaa02a8e1..3f429b50680 100644
--- a/clang/www/analyzer/alpha_checks.html
+++ b/clang/www/analyzer/alpha_checks.html
@@ -27,6 +27,7 @@ Patches welcome!
<li><a href="#clone_alpha_checkers">Clone Alpha Checkers</a></li>
<li><a href="#core_alpha_checkers">Core Alpha Checkers</a></li>
<li><a href="#cplusplus_alpha_checkers">C++ Alpha Checkers</a></li>
+<li><a href="#llvm_alpha_checkers">LLVM Checkers</a></li>
<li><a href="#valist_alpha_checkers">Variable Argument Alpha Checkers</a></li>
<li><a href="#deadcode_alpha_checkers">Dead Code Alpha Checkers</a></li>
<li><a href="#osx_alpha_checkers">OS X Alpha Checkers</a></li>
@@ -583,6 +584,31 @@ void test(id x) {
</pre></div></div></td></tr>
</tbody></table>
+<!-- =========================== llvm alpha =========================== -->
+<h3 id="llvm_alpha_checkers">LLVM Checkers</h3>
+<table class="checkers">
+<colgroup><col class="namedescr"><col class="example"></colgroup>
+<thead><tr><td>Name, Description</td><td>Example</td></tr></thead>
+
+<tbody>
+<tr><td><div class="namedescr expandable"><span class="name">
+alpha.llvm.Conventions</span><span class="lang">
+(C)</span><div class="descr">
+Check code for LLVM codebase conventions:
+<ul>
+ <li>A <code>StringRef</code> should not be bound to a temporary std::string
+ whose lifetime is shorter than the <code>StringRef</code>'s.</li>
+ <li>Clang AST nodes should not have fields that can allocate memory.</li>
+</ul>
+</div></div></td>
+<td><div class="exampleContainer expandable">
+<div class="example"><pre>
+<!-- TODO: Add examples, as currently it's hard to get this checker working. -->
+</pre></div></div></td></tr>
+
+</tbody></table>
+
+
<!-- ============================== OS X alpha ============================== -->
<h3 id="osx_alpha_checkers">OS X Alpha Checkers</h3>
<table class="checkers">
OpenPOWER on IntegriCloud