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
 Move Implementation to Source File bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mikeidge
Starting Member

1 Posts

Posted - Jan 22 2025 :  10:12:04 AM  Show Profile  Reply with Quote
Hello,

This has been driving my potty for months. Whenever I use Move Implementation to Source File, Visual Assist moves all of the functions within the class to the cpp file, but in doing so, it reverses the order of all the functions. (The order of the functions in the header remains unchanged.)

Is this a bug, or is there a setting somewhere that I've yet been unable to find?

Thanks!

feline
Whole Tomato Software

United Kingdom
19080 Posts

Posted - Jan 29 2025 :  11:30:53 AM  Show Profile  Reply with Quote
Using the simple test class, in the header file:

class SimpleMoveImplementationOrderingTest
{
public:
	short MoveMeOne() { return 1; }
	short MoveMeTwo() { return 2; }
	short MoveMeThree() { return 3; }
	short MoveMeFour() { return 4; }
};

when I trigger Move Implementation to Source File on the class, the implementations are in the expected, correct order.

Do you have:

VA Options -> Code Generation -> Maintain order in header and source files for generated C/C++ implementations

turned On or Off? If this is Off, what effect does turning it On have?

If this is already turned On, can you please try the same test class that I used here, and see what results you get?

zen is the art of being at one with the two'ness
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