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

Clang: No highlighting for operator[] argument

XMLWordPrintable

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

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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes