Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15357

MSVC2015: Clang Static Analyzer throwing errors on

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.6.0-rc1
    • None
    • Windows 10, MSVC2015

    Description

      Probably component is wrong.

      How to reproduce:

      • Create a default qt quick controls app from the wizard
      • Start the clang static analyzer

      Expected Ouput:

      • Something at all

      Actual Output:

      • No output shown, neither Issues pane opened even though that shows issues. Opening the pane results in:
        :1: warning: Command line: "C:/Qt/qtcreator-3.5.81/bin/clang-cl.exe" "-analyze" "-o" "C:/Users/mauri/AppData/Local/Temp/qtc-clangstaticanalyzer-xSmAFs/report-main.cpp-X25572.plist" "-m32" "/TP" "/D_MSVCRT=" "/Dw64=" "/Dint64=long long" "/Dint32=long" "/Dint16=short" "/Dint8=char" "/Dptr32=" "/Dptr64=" "/DCOUNTER=0" "/D_CPPRTTI=1" "/D_CPPUNWIND=1" "/D_DEBUG=1" "/D_DLL=1" "/DFUNCDNAME= __FUNCDNAME_ " "/D_FUNCSIG= __FUNCSIG_ " "/D_FUNCTION= __FUNCTION_ " "/D_INTEGRAL_MAX_BITS=64" "/D_M_IX86=600" "/D_M_IX86_FP=2" "/D_MSC_BUILD=0" "/D_MSC_EXTENSIONS=1" "/D_MSC_FULL_VER=190023026" "/D_MSC_VER=1900" "/D_MT=1" "/D_NATIVE_WCHAR_T_DEFINED=1" "/D_WCHAR_T_DEFINED=1" "/D_WIN32=1" "/D_DATE="Nov 18 2015"" "/DTIME="11:16:01"" "/DTIMESTAMP_="Wed Nov 18 11:16:01 2015"" "/DUNICODE=1" "/DWIN32=1" "/DQT_QML_DEBUG=1" "/DQT_QUICK_LIB=1" "/DQT_WIDGETS_LIB=1" "/DQT_GUI_LIB=1" "/DQT_QML_LIB=1" "/DQT_NETWORK_LIB=1" "/DQT_CORE_LIB=1" "/DQT_OPENGL_ES_2=1" "/DQT_OPENGL_ES_2_ANGLE=1" "/IC:/snippets/fsdfsesfge" "/IC:/dev/qt5_56_compile/qtbase/include" "/IC:/dev/qt5_56_compile/qtbase/include/QtQuick" "/IC:/dev/qt5_56_compile/qtbase/include/QtWidgets" "/IC:/dev/qt5_56_compile/qtbase/include/QtGui" "/IC:/dev/qt5_56_compile/qtbase/include/QtANGLE" "/IC:/dev/qt5_56_compile/qtbase/include/QtQml" "/IC:/dev/qt5_56_compile/qtbase/include/QtNetwork" "/IC:/dev/qt5_56_compile/qtbase/include/QtCore" "/IC:/dev/qt5/qtbase/mkspecs/win32-msvc2015" "/IC:/snippets/build-fsdfsesfge-Desktop-Debug" "/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.10563.0\ucrt" "/IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.10563.0\shared" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.10563.0\um" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.10563.0\winrt" "/EHsc" "C:\snippets\fsdfsesfge\main.cpp"
        Process Error: 5
        Output:
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qglobal.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:74:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcompilerdetection.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qcompilerdetection.h:928:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\utility:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstddef:11:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xtr1common(231,22) : error: use of undeclared identifier 'char16_t'
        struct _Is_integral<char16_t>
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xtr1common(237,22) : error: use of undeclared identifier 'char32_t'
        struct _Is_integral<char32_t>
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qglobal.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:74:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcompilerdetection.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qcompilerdetection.h:928:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\utility:6:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstddef(408,14) : error: use of undeclared identifier 'char16_t'
        struct hash<char16_t>
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstddef(414,14) : error: use of undeclared identifier 'char32_t'
        struct hash<char32_t>
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qglobal.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:74:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcompilerdetection.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qcompilerdetection.h:928:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\utility:7:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd(267,21) : error: use of undeclared identifier 'char16_t'
        struct char_traits<char16_t>
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd(276,21) : error: use of undeclared identifier 'char32_t'
        struct char_traits<char32_t>
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qglobal.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:85:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\algorithm:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0:8:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\limits(615,33) : error: use of undeclared identifier 'char16_t'
        template<> class numeric_limits<char16_t>
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\limits(905,33) : error: use of undeclared identifier 'char32_t'
        template<> class numeric_limits<char32_t>
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qglobal.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:1108:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qtypeinfo.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qtypeinfo.h:34:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qtypetraits.h:1:
        C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qtypetraits.h(245,31) : error: use of undeclared identifier 'char16_t'
        template<> struct is_integral<char16_t> : true_type { };
        ^
        C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/global/qtypetraits.h(246,31) : error: use of undeclared identifier 'char32_t'
        template<> struct is_integral<char32_t> : true_type { };
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:38:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qstring.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:42:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qbytearray.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qbytearray.h:45:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\string:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\istream:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\ostream:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\ios:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocnum:10:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\streambuf:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xiosbase:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale:8:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\stdexcept:7:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2623,22) : error: use of undeclared identifier 'char16_t'
        typedef basic_string<char16_t, char_traits<char16_t>, allocator<char16_t> >
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2623,53) : error: expected unqualified-id
        typedef basic_string<char16_t, char_traits<char16_t>, allocator<char16_t> >
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2625,22) : error: use of undeclared identifier 'char32_t'
        typedef basic_string<char32_t, char_traits<char32_t>, allocator<char32_t> >
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring(2625,53) : error: expected unqualified-id
        typedef basic_string<char32_t, char_traits<char32_t>, allocator<char32_t> >
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:38:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qstring.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:42:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qbytearray.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qbytearray.h:45:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\string:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\istream:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\ostream:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\ios:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocnum:10:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\streambuf:6:
        In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xiosbase:6:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(1004,30) : error: use of undeclared identifier 'char16_t'
        class _CRTIMP2_PURE codecvt<char16_t, char, _Mbstatet>
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(1328,30) : error: use of undeclared identifier 'char32_t'
        class _CRTIMP2_PURE codecvt<char32_t, char, _Mbstatet>
        ^
        In file included from C:\snippets\fsdfsesfge\main.cpp:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets\QApplication:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/qapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtWidgets/../../../../qt5/qtbase/src/widgets/kernel/qapplication.h:37:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qcoreapplication.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qcoreapplication.h:38:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qstring.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:42:
        In file included from C:/dev/qt5_56_compile/qtbase/include\QtCore/qbytearray.h:1:
        In file included from C:/dev/qt5_56_compile/qtbase/include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qbytearray.h:45:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\string(640,8) : error: unknown type name 'u16string'
        inline u16string operator "" s(const char16_t *_Str, size_t _Len)
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\string(640,38) : error: unknown type name 'char16_t'
        inline u16string operator "" s(const char16_t *_Str, size_t _Len)
        ^
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\string(645,8) : error: unknown type name 'u32string'
        inline u32string operator "" s(const char32_t *_Str, size_t _Len)
        ^
        fatal error: too many errors emitted, stopping now [-ferror-limit=]
        20 errors generated.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              gagi Dominik Holland
              mkalinow Maurice Kalinowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes