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

        1. 00-highlighting-ok.png
          172 kB
          Alessandro Ambrosano
        2. 01-highlighting-broken.png
          173 kB
          Alessandro Ambrosano
        3. broken-code-model-cmake-qtcreator.zip
          2 kB
          Alessandro Ambrosano
        For Gerrit Dashboard: QTCREATORBUG-22871
        # Subject Branch Project Status CR V

        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:

              Gerrit Reviews

                There are no open Gerrit changes