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

Ludi
New Member

8 Posts

Posted - Nov 07 2006 :  08:11:21 AM  Show Profile  Reply with Quote
Hi,

first: Thank you very much for this great program, I really love it :)

Now, here's my problem:

I have edited the Refactor Document Methdo Autotext in order to use it with Doxygen. Here's how it looks:


/**
 * $end$.
 * 
 * \\param $MethodArgName$ ($MethodArgType$)
 * \\return ($SymbolType$)
 */


Actually, it works for 99% of my methods, but not for all, e.g.:

	void UpdateConnectionStatus(Connection *con, const char *date, ConnectionStatus status);


Produces the following auto comment:

	/**
	 * .
	 * 
	 * \\param con (Connection *)
	 * \\param con (const char *)
	 * \\param con (ConnectionStatus)
	 * \\param date (Connection *)
	 * \\param date (const char *)
	 * \\param date (ConnectionStatus)
	 * \\param status (Connection *)
	 * \\param status (const char *)
	 * \\param status (ConnectionStatus)
	 * \\return (void)
	 */


But using the default auto text works correct with this method.

I don't know why this happens, so I hope someone here could help me :)

Greetings

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Nov 07 2006 :  08:17:01 AM  Show Profile  Reply with Quote
I understand why this is happening, but I am not sure why you are placing ($MethodArgType$) on the end. $MethodArgName$ was added for Doxygen, and other times when you only want the parameter name. My understanding is that Doxygen picks up the parameter type automatically, so there is no need for this to be listed in the comment.

Both $MethodArgName$ and $MethodArgType$ add an entire copy of the line for each parameter, so each add 3 lines, but since they are not aware they are being used together you are getting 3 * 3 = 9 lines.

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

Ludi
New Member

8 Posts

Posted - Nov 07 2006 :  09:55:06 AM  Show Profile  Reply with Quote
Well, I only wanted to have the type of the parameter directly in the comment. I didn't find a way to do this directly with doxygen. So I tried to misuse VAX for this :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Nov 07 2006 :  10:25:43 AM  Show Profile  Reply with Quote
I have put in a case to only generate one line per parameter when you do something like this. For now you will either have to delete the stray lines by hand when they happen, or use a more "normal" Document Method autotext rule

case=3488

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

Ludi
New Member

8 Posts

Posted - Nov 07 2006 :  11:09:34 AM  Show Profile  Reply with Quote
Thanks for you help. I think I can live with deleting the lines by hand :)

And again, thanks for your great product. I use it actually since one week or so and I actually don't want to live without it anymore. The Refactoring tools are really a great help.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Feb 23 2007 :  02:50:40 AM  Show Profile  Reply with Quote
Case 3488 is fixed in build 1547.
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