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
 Feature Requests
 Documentation -> Doxygen
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

verifier
Senior Member

Sweden
27 Posts

Posted - Sep 27 2006 :  02:35:58 AM  Show Profile  Reply with Quote
It's nice that you added the "Document Method" feature. Can you support doxygen tags in it instead of the current layout?

Your example would look like:


/**
 * Here is an description that the user
 * should enter himself. There is no need
 * to enter the parameter types since
 * they are displayed anyway by
 * intellisense.
 *
 * @param nRow Row of the cell, 0-based.
 * @param nCol Column of the cell, 0-based.
 * @param str New string that the cell should display
 */
void OnEndEditCell(int nRow, int nCol, CString str);


The documentation should be added to the header and not the cpp file. The cpp files can grow quite large anyway.

there's also a "@return" tag, but it's only used to desribe what is actually return (for instance why true and not false was returned for bool).

Also, theres a "@throws" tag that explains why an exception is thrown (one per exception).

As for now, the documentation that is added is unfortunally quite useless since you get exactly the same information from intellisense/VA.

c++ coder @ datatal.se | been coding since '95

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 28 2006 :  11:45:04 AM  Show Profile  Reply with Quote
You can edit the format of Document Method, via the AutoText entry called 'Refactor Document Method'

Read this page on our site to learn about the autotext keywords for document method.

http://www.wholetomato.com/products/features/documentMethod.asp

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

Go to Top of Page

verifier
Senior Member

Sweden
27 Posts

Posted - Sep 28 2006 :  11:51:04 AM  Show Profile  Reply with Quote
yes, but that doesnt help.

$MethodArg$ adds all arguments to the same line (cant describe the methods then)

All other $$ variables doesnt help.

c++ coder @ datatal.se | been coding since '95
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 28 2006 :  12:04:34 PM  Show Profile  Reply with Quote
$MethodArg$ and its variants put each one in a new line.

so if I have void foo( int bar, int fooBar )

document method for the parameters would produce.

// Parameter: int bar
// Parameter: int foobar

Though, there could be a new keyword similar to the special flags that prompt for input. That would generate one for each parameter. something like $MethodArgComment$

case=2781

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

Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 28 2006 :  12:32:06 PM  Show Profile  Reply with Quote
quote:
Originally posted by verifier

$MethodArg$ adds all arguments to the same line (cant describe the methods then)



Can you post a some examples of the output you are getting?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Sep 30 2006 :  11:27:12 AM  Show Profile  Reply with Quote
using VA 1535 and VS2003 i placed your prototype into a C++ header file, and edited the autotext entry for document method to read:

/**
 * $end$
 *
 * @param $MethodArgName$
 * @return $SymbolType$
 */



and triggered document method on the prototype i ended up with:

/**
 * |
 *
 * @param nRow
 * @param nCol
 * @param str
 * @return void
 */


which seems to be the correct template for what you want. the red bar is where my caret was positioned

which version of VA are you using? if you are using a very early 15xx build then document method may not support some of these features.

do you have a lot of function pointers, or other types with brackets in them in your parameters?

zen is the art of being at one with the two'ness

Edited by - feline on Sep 30 2006 11:27:49 AM
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