I have a (possibly bad) habit of coding everything into a monolithic header file when trying out ideas, placing all implementation code with the class definitions. As the code expands, it becomes difficult to navigate the file. Therefore, I refactor the code into separate files and split the implementation details (cpp files) from the interface (hpp files).
The laborious copy / pasting involved seems like a job for a machine. Are there any simple tools available for this task?
You can try Lazy C++, as stated in this question.
You can also use a standard IDE, and move each function from header to source (for Visual Studio you can use Visual Assist, I think Eclipse can do it straight), generally it's like right click > refactor > move to source or something like that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With