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
 Refactoring: Create implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dgehri
Senior Member

Switzerland
43 Posts

Posted - Sep 08 2006 :  06:06:47 AM  Show Profile  Reply with Quote
Hello,

I've started using the "Create Implementation" refactoring tool. I found two problems so far. Given the class

class A { 
 typedef Other Type;
 
 Type foo(int bar);
};

When I create the implementation for A::foo, I end up with:

Type A::foo( int bar )
{

}

The two problems are:

  • Type should read A::Type

  • I have to manually remove the spaces around "int bar", as I don't use this coding style. Given the declaration, VA.X could have guessed that by itserlf.


Would it be possible to fix that ?
Regards,

Daniel




VA_X.dll file version 10.3.1534.0 built 2006.09.02
VAOpsWin.dll version 1.3.3.6
VATE.dll version 1.0.5.8
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Lucida Sans Typewriter 11(Pixels)
Comctl32.dll version 6.0.2900.2180
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

Other Includes:


Edited by - dgehri on Sep 08 2006 06:07:50 AM

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 08 2006 :  10:46:23 AM  Show Profile  Reply with Quote
already been caught.

case=1247

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 08 2006 :  1:12:21 PM  Show Profile  Reply with Quote
case=1247 is the return type qualification.

The other is controlled by an autotext rule, "Refactor CreateImplementation" Change that, and you can get your style.

Joe Pizzi
Go to Top of Page

dgehri
Senior Member

Switzerland
43 Posts

Posted - Sep 08 2006 :  1:20:05 PM  Show Profile  Reply with Quote
@jpizzi: Excellent, I didn't know I could change the templates for any of the Refactor commands. Now even the method comment becomes useful.

Thanks!
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 19 2006 :  01:52:07 AM  Show Profile  Reply with Quote
Case 1247 is fixed in build 1535.
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