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

Refactoring should check for new name before applying rename

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P4: Low
    • None
    • Qt Creator 2.5.0
    • C/C++/Obj-C++ Support
    • None
    • Linux, but should be everywhere

    Description

      When you refactor a variable name and change its name to one that already exists, and this existing variable has the same type (e.g. int), you're going to merge these two variables.

      This can be dangerous - you don't get a warning.

      Solution: Before refactoring, check if that name already exists, and put out a warning asking the user if he REALLY wants this.

      Sometimes merging is intended. Maybe automatically check the types of the variables, and if they are NOT the same, refuse the merging/refactoring completely?

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              droetker Christian Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes