Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1715 Rename of function parameters does not work
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mwede
Starting Member

1 Posts

Posted - Feb 24 2009 :  04:35:52 AM  Show Profile  Reply with Quote
Hi all,

with VAX version 10.5.1711.0 or 10.5.1715.0 renaming of function parameters does not work.

Renaming of function names in contrast does work.

A simple example to reproduce the problem:

TestIt.h:

class TestIt
{
public:
TestIt(int test);
~TestIt(void);

void someFunction(int aha);
};

TestIt.cpp:

#include "TestIt.h"

TestIt::TestIt(int test)
{
}

TestIt::~TestIt(void)
{
}

void TestIt::someFunction(int aha)
{
}

The two files TestIt.h and TestIt.cpp are in a VC++ project in a Visual Studio solution.

How can this problem be solved?

Thanks and best regards

Marco

This is my installation of Visual C++:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional
...
Microsoft Visual C++ 2005 77626-009-0000007-41365
Microsoft Visual C++ 2005
...
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
...
Visual Assist X
Xoreax IncrediBuild 3.31 (build 894)
Xoreax IncrediBuild 3.31 (build 894)

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Feb 24 2009 :  10:09:22 AM  Show Profile  Reply with Quote
Can you define "does not work"?

If you rename a parameter name in the implementation the parameter name is not renamed in the declaration. This is currently a known limitation:

case=1140

If you want to rename the parameter name in both declaration and implementation then use Change Signature to change the parameter name.

Remember there is no requirement in C++ for the parameter name to match in the implementation and declaration. It is confusing if they are different, but it is valid.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000