Solved How to list all callers of a function / method?
-
I am refactoring some code and I want to see a list of where a particular function or method is called.
The ideal workflow would be:
- Place cursor on function or method
- Press a key to jump to a caller - order can be as the file is in the CMakeLists.txt but isn't that important
- I make my change
- I go back to the function or method
- Go to step 2 until I'm done
Is there a way to jump to a caller?
-
If you are using Qt creator, press Ctrl+Shift+U and it shold give you the references and places of function and calls. The same is possible for other things like parameters and variables.
Finding references is limited to all modules in current projects of a session. -
Thank you; And it works like magic!
I was searching for "caller", "function", etc. Didn't think of usage.
I'm trying to think if there is a way to make things more discoverable.