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

Inconsistent highlighting of disabled code

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes