Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactoring: Create implementation

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
dgehri Posted - Sep 08 2006 : 06:06:47 AM
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:

4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Sep 19 2006 : 01:52:07 AM
Case 1247 is fixed in build 1535.
dgehri Posted - Sep 08 2006 : 1:20:05 PM
@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!
jpizzi Posted - Sep 08 2006 : 1:12:21 PM
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.
rhummer Posted - Sep 08 2006 : 10:46:23 AM
already been caught.

case=1247

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