Author Topic: How to find all references to a function  (Read 3178 times)

knightcoder

  • Guest
How to find all references to a function
« on: November 01, 2009, 12:26:40 am »
Hi all.
I'm new to Code::Blocks. I've created a project with quite a few files/functions in it. When I right-click on a function, it takes me to either the implementation or the declaration of the function. How can I find all the places where that function is called? I know grep would work but I can't distinguish between overloaded functions.

Thanks.

~[Hack the Planet]~


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to find all references to a function
« Reply #1 on: November 01, 2009, 01:53:01 am »
If you installed the "thread search" plugin, there is another context menu:

"find occurrences of XXXXX".
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.