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
 1522: Refactoring - Document Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chris Wilcock
Senior Member

United Kingdom
26 Posts

Posted - Jun 12 2006 :  09:03:21 AM  Show Profile  Reply with Quote
Hello!

The new refactoring support in build 1522 is excellent, but I'm having a couple of problems with the 'Document Method' option in C++ when used in Visual Studio 6 (I've not tried VS2005).

When used on a constructor definition that calls the base class constructor, such as this...

CSessionsView::CSessionsView () :
CMultiFormView (CSessionsView::IDD)

{
}

... the result looks like this:

CSessionsView::CSessionsView () ://************************************

// Method: CSessionsView

// FullName: CSessionsView::CSessionsView

// Access: public

// Returns:

// Qualifier: : CMultiFormView (IDD)

//************************************

CMultiFormView (CSessionsView::IDD)

{
}

As you can see, VA has indented the first line of the constructor definition, and pasted the comment block in the middle of the call to the base class constructor.

This seems to work OK on constructors that don't explicitly call a base class constructor, and on other member functions too - except that the comment block for a destructor is indented four spaces instead of appearing flush left.

The second problem is that the comment block always seems to be double spaced, including a blank line between each pasted line of AutoText.

Finally, a feature request: Please can you add an additional AutoText parameter that expands to just the parameter name, without its associated data type - ie to 'pDX' instead of 'CDataExchange * pDX' ...? Like $MethodArg$, this would be repeated for each parameter of the method.

Thanks very much...!


Chris Wilcock

rhummer
Tomato Guru

USA
527 Posts

Posted - Jun 12 2006 :  09:20:29 AM  Show Profile  Reply with Quote
This is a known bug, case=1191


The request has already been thought of, case=1211

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


Edited by - rhummer on Jun 12 2006 09:27:57 AM
Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Jun 12 2006 :  12:27:59 PM  Show Profile  Reply with Quote
Ok, and what about this request: It would be nice (at least for me) to have "Document function/class" in the java-doc style. Doxygen seems to be quite popular tool..
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Jun 12 2006 :  2:24:02 PM  Show Profile  Reply with Quote
You can change the formating/information displayed in the autotext menu. Its called Refactor Document Method

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

Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Jun 12 2006 :  2:39:06 PM  Show Profile  Reply with Quote
quote:
Originally posted by rhummer

You can change the formating/information displayed in the autotext menu. Its called Refactor Document Method


Thanks, I didn't notice that.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 19 2006 :  4:49:00 PM  Show Profile  Reply with Quote
Fixed in build 1524:

Document Method works for class ctors with initializer lists. (case=1191)
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