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

Clang: Enumerator is highlighted as type within class declaration

XMLWordPrintable

      enum EnumType  { EnumValue };
      EnumType v = EnumType::EnumValue; // Fine
      EnumType v2 = EnumType::EnumValue; // Fine
      
      struct X {
      enum EnumType { EnumValue };
      EnumType v = EnumType::EnumValue; // Ops, "EnumValue" has type color
      EnumType v2 = EnumValue; // Ops, "EnumValue" has type color
      };
      

      Same problem with Qt Creator build against current llvm/clang trunk.

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

            kosjar Nikolai Kosjar
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes