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

"Rename symbol under cursor" allows symbols to be renamed to reserved words

    XMLWordPrintable

Details

    Description

      If a user calls "Rename symbol under cursor" on a function name and changes it to a C++ reserve keyword, such as `register` or `typedef`, Qt Creator replaces the symbol name with the reserved word on all files.

      How to reproduce:

      • declare function foo()
      • call "Rename symbol under cursor" on function
      • rename function to a reserved word such as `register` or `typedef` or `const`

      It would be nice if Qt Creator validated the input string to avoid renaming symbols to reserved words.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rui maciel Rui Maciel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes