Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to list all callers of a function / method?
QtWS25 Last Chance

How to list all callers of a function / method?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Harjit
    wrote on last edited by
    #1

    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?

    K 1 Reply Last reply
    0
    • H Harjit

      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?

      K Offline
      K Offline
      koahnig
      wrote on last edited by aha_1980
      #2

      @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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • H Offline
        H Offline
        Harjit
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved