Author Topic: Code refactoring tool  (Read 4454 times)

Offline Sagaceil

  • Single posting newcomer
  • *
  • Posts: 9
Code refactoring tool
« on: September 22, 2014, 01:00:32 pm »
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{ };

File Trololo.h
Code
#include "UglyName.h"

UglyName variable;

After the refactoing UglyName -> PrettyName :

File UglyName.h
Code
class PrettyName { };

File Trololo.h
Code
#include "PrettyName .h" // <- File doesn't exists

PrettyName variable;

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 ! :)