Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Change Signature should handle const-changes

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
StefanEgo Posted - Nov 19 2012 : 06:09:12 AM
Steps to reproduce:
1. use copy-paste the following code into a new project file:

class Foo
{
	virtual void bar() {}
};

class Bar : public Foo
{
	void bar() {}
};

2. Right-click on Foo::bar() and choose "Refactor -> Change Signature..."
3. In the box change "virtual void bar()" to "virtual void bar() const" and click on OK.

Actual result:
Window closes and the bar()-method in Foo is changed.

Expected result:
Either of the following would be acceptable/expected:
a) Window closes and bar()-methods in Foo AND Bar are changed.
b) Window closes and a Warning-popup is displayed "Change in constness of method in new signature. You should now update references if they need to accomodate the change."
VA Find References then shows Bar::bar() as an entry to investigate.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Nov 18 2013 : 3:29:38 PM
Change Signature was overhauled in build 2007 and now supports changes to a class hierarchy.
feline Posted - Nov 20 2012 : 2:38:45 PM
We are looking into making Change Signature aware of derived classes, so that all of the functions will be updated:

case=3373

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000