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

Clang: Enumerator is highlighted as type within class declaration

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: