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

    • Platform/s:
      Windows
    • 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

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-22871
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              cadam Cristian Adam
              Reporter:
              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