[www] r296603 - [GSoC] Add a clang-tidy project.

Vassil Vassilev via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 02:28:32 PST 2017


Author: vvassilev
Date: Wed Mar  1 04:28:32 2017
New Revision: 296603

URL: http://llvm.org/viewvc/llvm-project?rev=296603&view=rev
Log:
[GSoC] Add a clang-tidy project.

Modified:
    www/trunk/OpenProjects.html

Modified: www/trunk/OpenProjects.html
URL: http://llvm.org/viewvc/llvm-project/www/trunk/OpenProjects.html?rev=296603&r1=296602&r2=296603&view=diff
==============================================================================
--- www/trunk/OpenProjects.html (original)
+++ www/trunk/OpenProjects.html Wed Mar  1 04:28:32 2017
@@ -397,6 +397,41 @@ Welcome prospective Google Summer of Cod
 
 <!-- *********************************************************************** -->
 <div class="www_subsection">
+  <a>Clang-tidy</a>
+</div>
+<!-- *********************************************************************** -->
+
+<!-- *********************************************************************** -->
+<div class="www_subsubsection">
+  <a name="clang-tidy-pointer-deref">Find dereference of pointers.</a>
+</div>
+<!-- *********************************************************************** -->
+
+<div class="www_text">
+  <p><b>Description of the project: </b>
+    Find dereference of pointer before checking for nullptr, like:
+    <pre>
+      Int * p = foo();
+      *p = 42;
+      If (p != nullptr) { // p != nullptr is considered as always true
+      }
+      If (!p) { // !p is considered as always false
+      }
+    </pre>
+
+    <br /><br />
+    This check should be easier to write in clang-tidy than in Clang Static
+    Analyzer, specially because that we don't care about inlining (as long as it
+    doesn't modify pointer). More details in the
+    <a href="https://llvm.org/bugs/show_bug.cgi?id=30232">Bugzilla feature
+      request</a> 
+  </p>
+  <p><b>Confirmed Mentor:</b>Alexander Kornienko, Piotr Padlewski</p>
+</div>
+
+
+<!-- *********************************************************************** -->
+<div class="www_subsection">
   <a>Clang Static Analyzer</a>
 </div>
 <!-- *********************************************************************** -->




More information about the llvm-commits mailing list