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

Details

    • Linux/Other display system

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes