I was given a legacy C ++ application to fix and add new functions, and I am having a terrible time after some code, as it uses global variables, huge macros #defineand many extremely three times named variables / functions (3 letter functions from 2 levels of inheritance up, etc.). Thus, determining the source of many functions or variables is more complex.
It also uses Hungarian notation .... sometimes ( m_Thingie- this is a member variable, but sometimes it is thingie).
Is there a way to make sure that access to a class member without an indication this->fails? This would allow me to use the compiler to efficiently determine the source of the variable.
I don’t mind if this is a terrible hack, if I can turn it on for some time while refactoring, and then turn it off for any compilation of the release, it will be fine.
source
share