Consider this simple class -
In the header file:
class dummy
{
void foo();
void bar(){};
}
in the source file:
void dummy::foo()
{
//do something
}
With the above, a "Move Implementation to Source File" does the expected and adds dummy::bar() at the end of the source file. However, I'm finding that if the preceding function in the source file has a comment immediately following it, the implementation is placed inside the preceding function.
So, if you have:
void dummy::foo()
{
//do something
}
//a comment here
the result is:
void dummy::foo()
{
//do something
void dummy::bar()
{
}
}
//a comment here
This is using build 2076.