<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 --- - checker-276 does not find C++ include files in Qt projects with C++11 support enabled."
   href="http://llvm.org/bugs/show_bug.cgi?id=20387">20387</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>checker-276 does not find C++ include files in Qt projects with C++11 support enabled.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>jaf@meyersound.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>Created <span class=""><a href="attachment.cgi?id=12804" name="attach_12804" title="Trivial source code and .pro file that reproduce the problem">attachment 12804</a> <a href="attachment.cgi?id=12804&action=edit" title="Trivial source code and .pro file that reproduce the problem">[details]</a></span>
Trivial source code and .pro file that reproduce the problem

To reproduce (note that I've only tested this under MacOS/X 10.8.5, using Xcode
5.1.1, LLVM 4.2, clang++ 425.0.27):

1) Download and install checker-276 static analysis tool ( e.g. from
<a href="http://clang-analyzer.llvm.org/downloads/checker-276.tar.bz2">http://clang-analyzer.llvm.org/downloads/checker-276.tar.bz2</a> )

2) Make sure you have Qt 5.2.0 or later installed

3) Unzip the attached .zip file

4) In the created directory, run:

     qmake
     scan-build make

5) Observe that you get the following build error:

     main.cpp:1:10: fatal error: 'string' file not found
     #include <string>

6) Observe that if you just run 'make' (rather than 'scan-build make') the
errors do not occur.

7) Observe that if you use checker-275 rather than checker-276, the errors do
not occur

8) Observe that if you disable C++11 support (by commenting out the second line
in the static_checker_bug.pro file), the errors do not occur.</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>