[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 255706] KDevelop does not rename a variable in method
From:       "Olivier.jg" <olivier.jg () gmail ! com>
Date:       2010-10-31 1:37:49
Message-ID: 20101031013749.9B1277367F () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=255706


Olivier.jg <olivier.jg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |olivier.jg@gmail.com
         AssignedTo|kdevelop-bugs@kdevelop.org  |olivier.jg@gmail.com
     Ever Confirmed|0                           |1




--- Comment #1 from Olivier.jg <olivier jg gmail com>  2010-10-31 02:37:48 ---
Yes, there are two different assistants at play here. One is the rename
assistant, that will rename any declaration's uses. The other is the signature
assistant, that will offer to update the other side of a function
definition/declaration.

The reason that renaming in the definition doesn't rename in the declaration is
because variable names in the declaration are unfortunately little better than
comments, which could be nonexistant, or just completely different (they aren't
strictly related).

Two things need to happen:
1. The signature assistant needs to be shown after the rename assistant
(getting around to this)
2. The variables used in the function definition need to be renamed when you
update it with the signature assistant.

#2 Is much trickier, since the signature assistant currently doesn't have a
foolproof mapping of old param -> new param, just heuristics.

Fixing this properly means updating the assistant UI, and making the signature
assistant much smarter.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic