[Qt-creator] {macOS} Clang Static Analyzer failing

Andy asmaloney at gmail.com
Sat Apr 7 14:02:42 CEST 2018


With Qt Creator 4.6, when I run static analysis on a project I'm getting a
lot of these failures:

Failed to analyze "/Users/maloney/dev/foo/bar.cpp": Clang Static Analyzer
finished with exit code: 1.
Command line: <huge command line>
Process Error: 5
Output:
clang-5.0: warning: argument unused during compilation: '-nostdlibinc'
[-Wunused-command-line-argument]
In file included from /Users/maloney/dev/foo/bar.cpp:5:
In file included from /Users/maloney/dev/Trolltech/Qt-Release/Qt
Creator.app/Contents/Resources/clang/lib/clang/5.0.1/include/float.h:45:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/float.h:69:15:
fatal error: 'float.h' file not found
#include_next <float.h>
              ^~~~~~~~~

(If <huge command line> is of interest I can attach it.)

Is the include from Qt Creator.app supposed to be finding the include
within the Xcode.app?

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180407/b0c540c7/attachment.html>


More information about the Qt-creator mailing list