News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code refactoring tool

Started by Sagaceil, September 22, 2014, 01:00:32 PM

Previous topic - Next topic

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

class UglyName{ };


File Trololo.h

#include "UglyName.h"

UglyName variable;


After the refactoing UglyName -> PrettyName :

File UglyName.h

class PrettyName { };


File Trololo.h

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