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

Clang code-model shows errors when MSVC 2017 kit is selected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.7.2, Qt Creator 4.8.0, Qt Creator 4.8.1
    • C/C++/Obj-C++ Support
    • None
    • Windows 10, MSVC 2017 and Qt Creator 4.8 from online installer.
    • Windows

    Description

      When using Qt Creator and a kit with MSVC 2017 as the compiler the Clang code model will show alot of errors. If the kit is switched to one with MingW 5.3 all errors disappears.

       

      This is very annoying and disrupts the work when using Qt together with MSVC compiler, so much so that it is almost easier to code using MingW and just build with MSVC 2017.

       

      Attached are two screenshots that shows the difference, the only change is changing the build kit.

       

      An example project that shows this behaviour can be found here: https://gitlab.com/AndWass/qt-creator-clang-bug

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            andreasw Andreas Wass
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes