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

"Rename symbol under cursor" doesn't work with array indices in case of warning

XMLWordPrintable

    • Linux/Other display system

      Let me suggest such code example

      vector<int> hello(10);
      int world = 2;
      cout << hello[world];

      In this case if I would like to refactor world and change it's name, it would change every occurence except inside braces if it is covered with warning about signed conversion.
      If I would change world type to size_t the refactor would work nice.

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

            Unassigned Unassigned
            haze Pavel Bezborodov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes