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

Inconsistent highlighting of disabled code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 4.7.2, Qt Creator 4.8.0
    • None

    Description

      The highlighting of disabled with code is wrong when using the clang code model. The #if or #ifdef ist highlighted as disabled code, but the corresponding #endif or #else is not. For consistency the #if directive should also not be marked as inactive code. See the attached screenshot.

      Interestingly, it looks good when the preprocessor directives are indented. Also, the builtin code model is fine.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kandeler Christian Kandeler
              gabriel Gabriel Hege
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes