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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to