Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1540: Problem with Document Method

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
Ludi Posted - Nov 07 2006 : 08:11:21 AM
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
5   L A T E S T    R E P L I E S    (Newest First)
support Posted - Feb 23 2007 : 02:50:40 AM
Case 3488 is fixed in build 1547.
Ludi Posted - Nov 07 2006 : 11:09:34 AM
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.
feline Posted - Nov 07 2006 : 10:25:43 AM
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
Ludi Posted - Nov 07 2006 : 09:55:06 AM
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 :)
feline Posted - Nov 07 2006 : 08:17:01 AM
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.

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