T O P I C R E V I E W |
Rain Dog |
Posted - Jun 09 2008 : 6:08:13 PM 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. |
4 L A T E S T R E P L I E S (Newest First) |
sean |
Posted - Feb 13 2015 : 8:18:41 PM case=12454 is fixed in build 2059 |
feline |
Posted - Jun 11 2008 : 08:20:02 AM 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. |
schoenherr |
Posted - Jun 11 2008 : 12:40:44 AM but how about a command like "reorder according to header file" |
feline |
Posted - Jun 10 2008 : 05:38:20 AM 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. |