Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: Qt Creator 4.9.2
-
Fix Version/s: Qt Creator 4.11.0-beta1
-
Component/s: C/C++/Obj-C++ Support, Editors
-
Labels:None
-
Environment:Windows 10, MSVC 2017, CMake 3.15
-
Platform/s:
-
Commits:93ec10754f6186b0331b52cb9e96ad3f4341af91 (qt-creator/qt-creator/4.11)
Description
When setting "unusual" compiler options in a CMake project, either by setting CMAKE_CXX_FLAGS or through add_compile_options, code highlight breaks.
This has been tested with /experimental:external and /justamadeupoption, both produced the same result. Other flags such as /W0 don't break code highlighting.
See screenshots below for reference.
Possibly related to QTCREATORBUG-18768