User forums > Help
Code refactoring tool
(1/1)
Sagaceil:
Hi !
I'm doing a massive refactoring thing in my project right now, and found some problem (bug in code refactorer?). When you try to rename class/variable using that tool, and the name you want to change is the same as the filename of the header for example, all includes in all other files will be changed too.
File UglyName.h
--- Code: ---class UglyName{ };
--- End code ---
File Trololo.h
--- Code: ---#include "UglyName.h"
UglyName variable;
--- End code ---
After the refactoing UglyName -> PrettyName :
File UglyName.h
--- Code: ---class PrettyName { };
--- End code ---
File Trololo.h
--- Code: ---#include "PrettyName .h" // <- File doesn't exists
PrettyName variable;
--- End code ---
Usually the file name must change due to refactoring something like this : MemoryTransporter to CMemoryTransporter, so the MemoryTransporter.h still have sense.
I'd like to know if its done with purpose to rename includes, and if there is an option to turn it off.
Thanks ! :)
Navigation
[0] Message Index
Go to full version