Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1715 Rename of function parameters does not work

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
mwede Posted - Feb 24 2009 : 04:35:52 AM
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)
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 24 2009 : 10:09:22 AM
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.

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