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
 1538: comments in $MethodQualifier$
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sl@sh
Tomato Guru

Switzerland
204 Posts

Posted - Nov 06 2006 :  05:21:36 AM  Show Profile  Reply with Quote
When using the Document Method refactoring on a function that has a comment in the same line, that comment is included in the $MethodQualifier$ token.

This means that
int getSize() const // get the object size
{ return 3; }
gets you a $MethodQualifier$ containing "const // get the object size".

On a sidenote, the same is true if an inline comment using '/*' and '*/' is placed between the const qualifier and a ';' or '{' sign on the same line.

P.S.: the same is true if you try to document constructors with initializers on the same line, such as
MyClass::MyClass(int x) : m_x(x)

Edited by - sl@sh on Nov 06 2006 05:48:52 AM

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Nov 06 2006 :  09:19:52 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

Comments being picked up and included is

case=3456

Initializers being picked up on the class constructor is:

case=3457

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