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
 Generated documentation incorrect for constructors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

graham.reeds
Ketchup Master

United Kingdom
51 Posts

Posted - Jun 12 2007 :  04:01:27 AM  Show Profile  Reply with Quote
and destructors.

Having this as the document method autotext:
/**
* This is the brief for the $SymbolVirtual$$SymbolPrivileges$$SymbolStatic$function $SymbolName$
* @param $MethodArgName$
* @return $SymbolType$
*/

Produces this for this destructor in a class called NVirtualNumpad:
/**
* This is the brief for the public function ~NVirtualNumpad
* @return */

The final return is missed out after the symbol type.

A better option would be to remove the return line if there is no return type (like in <con|de>structors.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 12 2007 :  08:20:01 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=1755

zen is the art of being at one with the two'ness
Go to Top of Page

dingweed
Senior Member

37 Posts

Posted - Jun 13 2007 :  1:42:55 PM  Show Profile  Reply with Quote
BTW why aren't VAX using standard XML comments? Wouldn't it be cool if you type /// above the funciton name and it would add the comments just like C# does?

we use this in our group, but I had to write my own extension to do that. It would be nice have it done automatically.
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Jun 13 2007 :  1:52:52 PM  Show Profile  Reply with Quote
Not everyone wants XML comments, so it's left up to the end user if they want to customize the format Document Method uses.

IIRC, Adding refactoring keywords to normal autotext has been requested and being considered. Though feline will correct me if I am wrong. :)

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

Go to Top of Page

graham.reeds
Ketchup Master

United Kingdom
51 Posts

Posted - Jun 14 2007 :  03:55:56 AM  Show Profile  Reply with Quote
As you can see I use DOxygen for my comments. I also program in Java which makes switching from one to the other.

While VAX doesn't give class comments, the fact that the document method is so strong I'll allow them that. Would be nice to finally kill off the macros though.

G.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 14 2007 :  07:30:36 AM  Show Profile  Reply with Quote
We are considering allowing Document Method to work on other things, classes included:

case=4932

rhummer is quite right, a few people have asked about this, and we are considering allowing refactoring keywords in normal autotext items:

case=3204

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