Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1538: comments in $MethodQualifier$

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
sl@sh Posted - Nov 06 2006 : 05:21:36 AM
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)
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 06 2006 : 09:19:52 AM
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

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