Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.8.0-beta1
-
None
-
MSVC2017
Description
QT creator with clang code model shows the warning "The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example."
The problem is an error preprocessor directive in yvals_core.h in the following lines
#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__ < 6 // Coarse-grained, not inspecting __clang_minor__ and __clang_patchlevel__ #error STL1000: Unexpected compiler version, expected Clang 6 or newer. #endif /* ^^^ old Clang ^^^ */ #elif defined(_MSC_VER) #if _MSC_VER < 1915 // Coarse-grained, not inspecting _MSC_FULL_VER #error STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. // <-- This is triggered #endif /* ^^^ old MSVC ^^^ */ #else /* vvv other compilers vvv */ // not attempting to detect other compilers #endif /* ^^^ other compilers ^^^ */ #endif /* _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH */
Problem seems to be, that the code model does not set _MSC_VER correctly to 1915. When compiling, the value is 1915.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-24985 Editing/highlighting functions get lost when QMAKE_CXXFLAG is defined in certain way
- Closed