Many times, when I look at the code of others, I just want to find where and how a variable is defined. Usually, Iβm now looking for a variable type until I find a definition that takes a lot of time. And I think there are some tools that can help me in this routine situation. Any suggestion on some tools or commands that will help me in this task?
I know that using the graphical interface and creating a project, this is done automatically. I am talking about how to do this without a GUI. I only work with text mode. I work under Linux and I use C / C ++, but suggestions for other languages ββare welcome.
Many thanks.
Possible Solution
Michel in one of his comments offers a simple effective solution to define the variable again, in this case, during compilation, the compiler will tell you where the previous criterion is. Of course, in order to apply this solution, we need to think earlier in the locality of the variable.
c ++ variables definition find
Eduardo
source share