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
 C++, Refactor, Create Declaration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kinstewar
Junior Member

19 Posts

Posted - Mar 13 2011 :  07:51:18 AM  Show Profile  Reply with Quote
Hi

Does visual assist allow me to edit "Create Declaration" snippet?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 14 2011 :  8:39:15 PM  Show Profile  Reply with Quote
Create Declaration does not have separate snippet, but Visual Assist respects the format of your implemented function.
Essentially, making a declaration is to remove the body and the method's qualification.
Go to Top of Page

Kinstewar
Junior Member

19 Posts

Posted - Mar 15 2011 :  10:46:10 AM  Show Profile  Reply with Quote
When I create declaration it leaves class name before method name

class MyClass
{
void MyClass::Method(int);
}

There is no need to preserve it.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 15 2011 :  8:47:01 PM  Show Profile  Reply with Quote
Are your class and the new method's implementation is in a namespace?
Go to Top of Page

Kinstewar
Junior Member

19 Posts

Posted - Mar 16 2011 :  11:52:03 AM  Show Profile  Reply with Quote
MyClass is declared this way:

//h
namespace Company
{
class MyClass
{
void Method(int);
}
}

//cpp
namespace Company
{
void MyClass::Method(int)
{
}
}

Edited by - Kinstewar on Mar 16 2011 11:52:56 AM
Go to Top of Page

Kinstewar
Junior Member

19 Posts

Posted - Mar 16 2011 :  11:55:06 AM  Show Profile  Reply with Quote
And in addition I would like to insert some tabs between returning type and method name

void(tab)(tab)(tab)Method();

so it will be very useful to customize this snippet

Edited by - Kinstewar on Mar 16 2011 11:55:33 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 16 2011 :  9:40:57 PM  Show Profile  Reply with Quote
I am seeing the same effect when namespace is involved:

case=6593

I see why a separate snippet is necessary for you:

case=13743
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2013 :  2:03:30 PM  Show Profile  Reply with Quote
case=6593 is fixed in build 1940
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 25 2013 :  4:38:09 PM  Show Profile  Reply with Quote
case=6593 nested namespace issue is fixed in build 2001.
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