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
 Feature Requests
 Refactoring of C++ namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gerol80
New Member

Germany
3 Posts

Posted - May 12 2011 :  08:19:52 AM  Show Profile  Reply with Quote
Would it be possible to add a refactoring feature for namespaces?

For example: if you use the "Implement Interface" command on a class in a namespace, you end up with a cpp file that contains a lot of methods like the following:

void A::B::C::D::ClassE::MethodF() {...}

Now it would be nice to have a refactoring like "Add 'using A::B::C::D'" that would also remove all the then unnecessary namespace identifiers from the cpp file.

Or after typing "using A::B::C::D" by myself, a refactoring like "Remove A::B::C::D identifiers" would also do the job.

Additionally, if I select "Create Implementation" in the header file and already have the correct "using" statement in the cpp file, VAX should omit the full namespace in the method declaration.

Edited by - gerol80 on May 12 2011 10:14:52 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 12 2011 :  11:57:04 PM  Show Profile  Reply with Quote
We are considering doing these at some point:

First suggestion is covered by:
case=33328

Last suggestion is covered by:
case=20637
Go to Top of Page

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Jun 18 2020 :  01:35:47 AM  Show Profile  Reply with Quote
case=20637 is fixed in build 2380.
https://support.wholetomato.com/default.asp?W404#2380
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