<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 silently fails to analyze files with -m in filename"
   href="http://llvm.org/bugs/show_bug.cgi?id=19453">19453</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>scan-build silently fails to analyze files with -m in filename
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3
          </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>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matt.sexton@redlinetrading.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If a filename is passed to scan-build with a -m in it, no analysis on the file
is performed.

<span class="quote">>scan-build clang -c a-m.c </span >
scan-build: Using '/usr/bin/clang' for static analysis
scan-build: Removing directory '/tmp/scan-build-2014-04-16-276' because it
contains no reports.
scan-build: No bugs found.

<span class="quote">>cp a-m.c a-o.c</span >

<span class="quote">>scan-build clang -c a-o.c </span >
scan-build: Using '/usr/bin/clang' for static analysis
a-o.c:13:6: warning: Address of stack memory associated with local variable
'rc' returned to caller
     return prc;
     ^~~~~~~~~~
1 warning generated.
scan-build: 1 bugs found.

<span class="quote">>cat a-o.c </span >
#include <stdlib.h>

void *foo( void )
{
     void *prc = NULL;
     int rc = 0;

     rc = system("a");
     if ( rc != 0 ) {
          prc = &rc;
     }  

     return prc;
}</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>