Disabling Implicit in C ++

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.

+4
source share
1 answer

Choose an extended coloring IDE, Visual Studio can do this, and if you are already using it, you don’t need to learn anything.

  • Click Tools , then click Options .
  • Expand the Environment settings group in the list on the left and select Fonts and Colors .

Fonts and colors dialog

  1. Scroll down Show items in the right pane until you find the items C++ .... There you can change the settings for the things you need (and much more):

  2. , . , ( ), . , , , , .

:

enter image description here

:

  • .
  • (, ).
  • .
  • ( - static).
  • ( static).
  • .
  • .

, (, ), ( ). , , .

+1

All Articles