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

Clang: No highlighting for operator[] argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.5.0-rc1, Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • None

    Description

      void foo()
      {
          struct C
          {
              int &operator [](int a) { return x; }
              int x;
          } c;
      
          int a = 0;
      
          c[a] = 0; // a not highlighted
      }
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: