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

Analyzer: Clang-tidy and Clazy analyzer does not work with MSVC 2019/16.8 and MinGW 8.1

    XMLWordPrintable

Details

    • Windows
    • d20303250427de7eb2c336c4340a123e00d897e0 (qt-creator/qt-creator/4.14)

    Description

      When trying to analyze my code that is built against a Kit with MSVC 2019/16.8..
      With clang-tidy, it fails with errors like:

      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\intrin.h:56:1: error: expected function body after function declarator [clang-diagnostic-error]
      __MACHINE(void * _AddressOfReturnAddress(void))
      ^
      Suppressed 3 warnings (3 with check filters).
      Found compiler error(s).
      

      That might be related to MSVC 2019/16.8: https://github.com/microsoft/STL/issues/1300

      With clazy, it fails with errors like:

      C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(1010,5): error: MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)
          __asm    {
          ^
      

      When trying to do that with a MinGW 8.1 x64 kit, it fails like this...
      With clazy, it fails with errors like:

      C:\Qt\Tools\mingw810_64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\xmmintrin.h:292:19: error: use of undeclared identifier '__builtin_ia32_movss'
        return (__m128) __builtin_ia32_movss ((__v4sf) __A,
      

      Attachments

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              portale Alessandro Portale
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: