Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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:

    1. Place cursor on function or method
    2. Press a key to jump to a caller - order can be as the file is in the CMakeLists.txt but isn't that important
    3. I make my change
    4. I go back to the function or method
    5. Go to step 2 until I'm done

    Is there a way to jump to a caller?



  • @Harjit

    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.


Log in to reply