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

Clang: Rename Symbol local/global scope depends on cursor position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.4.0-rc1
    • C/C++/Obj-C++ Support
    • Ubuntu Linux x64, Clang Code Model, Clang Refactoring

      I'm testing the Clang Code Model and also enabled Clang Refactoring, and found the following interesting case:

      If I trigger Rename Symbol for a function-local symbol...

      • while the cursor is within the symbol, local renaming is started
      • while the cursor is after the last symbol character, global renaming is started

      Expected: If the symbol is local, it should always be renamed locally.

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

            bubke Marco Bubke
            aha_1980 André Hartmann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes