Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Rename does not update both .cpp and .h

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
jan.antonis Posted - Oct 25 2011 : 06:11:22 AM
If I have a function in my cpp file. e.g.

ErrorType CMyClass::MyFunction( CMyPassedClass& myPassedVariableName )
{
}

and I right click on the "myPassedVariableName" string and choose
Refactor->Rename. Then select a new variable name e.g. "myPassedVariableName2", VisualAssist will correctly rename all usage of the variable in the cpp file, but will not change the variable name in the header file.

I realize the software will compile like this and the functionality of the code will be unaffected, but for clarity I need the variables to have the same name.
Perhaps there is a setting I can change (I have looked but cannot find one).

thanks
JA
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 25 2011 : 11:09:35 AM
Currently this is a known limitation of rename that we are looking to fix:

case=1140

In this situation, if you use Change Signature instead, this should update all instances of the parameter name in the implementation.

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