[LLVMbugs] [Bug 20387] New: checker-276 does not find C++ include files in Qt projects with C++11 support enabled.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 21 10:58:28 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20387

            Bug ID: 20387
           Summary: checker-276 does not find C++ include files in Qt
                    projects with C++11 support enabled.
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: jaf at meyersound.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12804
  --> http://llvm.org/bugs/attachment.cgi?id=12804&action=edit
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
http://clang-analyzer.llvm.org/downloads/checker-276.tar.bz2 )

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140721/39e41439/attachment.html>


More information about the llvm-bugs mailing list