From kdevelop-bugs Sun Oct 31 01:37:49 2010 From: "Olivier.jg" Date: Sun, 31 Oct 2010 01:37:49 +0000 To: kdevelop-bugs Subject: [Bug 255706] KDevelop does not rename a variable in method Message-Id: <20101031013749.9B1277367F () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128848920408032 https://bugs.kde.org/show_bug.cgi?id=255706 Olivier.jg 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 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