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

Clang Code Model: Error when parsing yvals_code.h (Visual Studio MSVC 2019 16.5.4)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.11.0, Qt Creator 4.11.1, Qt Creator 4.12.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • Visual Studio 2019 16.5.4
    • Windows

    Description

      After update to Visual Studio 16.5 compilers there is error when parsing any file that includes some of STL headers.

      yvals_core.h:435:2: error: STL1000: Unexpected compiler version, expected Clang 9.0.0 or newer.

      Part of yvals_core.h:

      #ifndef _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
      #ifdef __EDG__
      // not attempting to detect __EDG_VERSION__ being less than expected
      #elif defined(__clang__)
      #if __clang_major__ < 9
      #error STL1000: Unexpected compiler version, expected Clang 9.0.0 or newer.
      #endif // ^^^ old Clang ^^^
      #elif defined(_MSC_VER)
      #if _MSC_VER < 1924 // Coarse-grained, not inspecting _MSC_FULL_VER
      #error STL1001: Unexpected compiler version, expected MSVC 19.24 or newer.
      #endif // ^^^ old MSVC ^^^
      #else // vvv other compilers vvv
      // not attempting to detect other compilers
      #endif // ^^^ other compilers ^^^
      #endif // _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
      

      It seemsĀ  Qt Creator uses too old version of LibClang and MSVC header parsed for Clang not for current toolchain which is MSVC
      Probably related bug: QTCREATORBUG-21373

      Attachments

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              auric Igor Lifanov
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: