Previous Next
Impact analysis: studying function calls

You may want to see where the function ToggleHeader is called:

  1. Highlight f ToggleHeader [2] in the Reference view.
    Note that the
    [2] that appears after the function name means that ToggleHeader is called twice in function update .
  2. Choose Context menu > ToggleHeader Referred By.
    As you can see in the illustration below, the backward references of
    ToggleHeader are added to the graph (you may have to resize the Reference view a bit). Remember that you selected only functions, structs, and typedefs in the Xref Filter dialog, so only matching symbols of these types are shown.

    Click for full size, then use Back button

        Note
        Try and work with a Depth of 1 wherever possible. Setting a large value for the Depth can lead to huge graphs. This is not very informative and can take a very long time.

    Let's now look directly at all references to ToggleHeader . To do so:

  1. <SHIFT> click on f scrollforw .
    The Code view is positioned to the first reference.
  2. <SHIFT> double-click on f scrollforw .
    A Source Editor appears, and the first reference is now displayed in it.
  3. Position the Source Editor and the Cross Referencer on your screen so that you can see both.
  4. In the Source Editor, choose Show > Next Match.
    The Source Editor is positioned at the next reference, and the node
    f scrollto is now highlighted in the Cross Referencer.
  5. To visit all locations, repeat the previous step until there are no more matches.