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

Code highlighting breaks when setting some compiler flags in a CMake project

    XMLWordPrintable

Details

    • Windows
    • 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

      Attachments

        Activity

          People

            cadam Cristian Adam
            alessandro.ambrosano Alessandro Ambrosano
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: