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
 VAOutline auto-arrange.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rain Dog
Ketchup Master

88 Posts

Posted - Jun 09 2008 :  6:08:13 PM  Show Profile  Reply with Quote
Using VAX refactoring "create implementation" often leaves my cpp files having a different ordering than the layout of my header file leaving me having to manaully re-order the functions in my cpp file so that they are the same as my header.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jun 10 2008 :  05:38:20 AM  Show Profile  Reply with Quote
There are two separate issues here. Firstly the placement of the new implementation when using Create Implementation. We are considering doing something about this, but it is not clear what to do for the best.

case=12454

Which is discussed here:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7228

the second issue is actually re-ordering files automatically. There are lots of ways this can go wrong, lots of possible edge cases to consider. For now VA Outline is designed to allow you to quickly and easily re-order files manually by simply dragging and dropping items in VA Outline, or using cut and paste to move them around.

We do not have any current plans to try and re-order files automatically.

zen is the art of being at one with the two'ness
Go to Top of Page

schoenherr
Tomato Guru

Germany
160 Posts

Posted - Jun 11 2008 :  12:40:44 AM  Show Profile  Reply with Quote
but how about a command like "reorder according to header file"
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jun 11 2008 :  08:20:02 AM  Show Profile  Reply with Quote
Consider this simple example. Header file goes:

void function1();
void function2();


the matching cpp file goes:


void function2() { /* ... */ }

#include "do_something_odd.h"
using namespace MORE_ODD_STUFF

void function1() { /* ... */ }


At this point what happens when you ask VA to order the cpp file so it looks like the header file?

This starts to get really nasty when people start doing clever things with macro's, #defines, etc in either the cpp of the header file.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 13 2015 :  8:18:41 PM  Show Profile  Reply with Quote
case=12454 is fixed in build 2059
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