<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - scan-build does not understand TAILQ_REMOVE from sys/queue.h"
   href="https://bugs.llvm.org/show_bug.cgi?id=42780">42780</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>scan-build does not understand TAILQ_REMOVE from sys/queue.h
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dcoughlin@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>james.r.harris@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22294" name="attach_22294" title="Test program to reproduce false positive">attachment 22294</a> <a href="attachment.cgi?id=22294&action=edit" title="Test program to reproduce false positive">[details]</a></span>
Test program to reproduce false positive

scan-build 8.0 has introduced false positives related to TAILQ_REMOVE from
sys/queue.h.  These false positives were not seen with previous versions of
scan-build.  This was found when trying to upgrade scan-build on CI systems for
SPDK (Storage Performance Development Kit).

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - False positive in sys/queue.h"
   href="show_bug.cgi?id=15297">https://bugs.llvm.org/show_bug.cgi?id=15297</a> seems to point to the same issue,
but it was marked as resolved and fixed 6 years ago.  This still seems like a
regression since behavior has changed with scan-build 8.0.

See attachment for a test program that reproduces the false positive.

Thanks,

Jim Harris
SPDK Core Maintainer</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>