Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0f54bd9349f6757d18c0d72202eedff57fa5ed9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Call Hierarchy view</title>
<link rel="stylesheet" type="text/css" href="../help.css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
</head>
<body>

<h1>Call Hierarchy view</h1>

<p>The <img src="../images/command_link.png" border="0" alt="" > <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.cdt.ui.callHierarchy)")'>Call Hierarchy</a> view shows the loaded callers and callees for a selected C/C++ function. Right-click a function name in a source file and select <strong>Open Call Hierarchy</strong> to open a Call Hierarchy view, if none is open, and show the function's callers.</p>

<p><img src="../images/view_call_hierarchy.png" alt="Call Hierarchy view" ></p>

<h3>Call Hierarchy view toolbar commands </h3>

  <p>The Call Hierarchy view toolbar commands include:</p>
  <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#999999" width="600">
    <tr>
      <td width="10%" align="left"><div align="center"><strong>Command</strong></div></td>
      <td width="30%"><div align="center"><strong>Name</strong></div></td>
      <td width="60%"><div align="center"><strong>Description</strong></div></td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_show_next_reference.png"  alt="Show Next Reference icon"></div></td>
      <td valign="top"><strong>Show Next Reference</strong></td>
      <td valign="top">Selects the next function.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_show_prev_reference.png" alt="Show Previous Reference icon" ></div></td>
      <td valign="top"><strong>Show Previous Reference</strong></td>
      <td valign="top">Selects the previous function.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_hide_variables_more.png" alt="Hide Variables, Constants and Enumerators icon" ></div></td>
      <td valign="top"><strong>Hide Variables, Constants and Enumerators</strong></td>
      <td valign="top">Toggle to show or hide all variables, constants and enumerators in the view.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_show_callers.png" alt="Show Callers icon" ></div></td>
      <td valign="top"><strong>Show Callers</strong></td>
      <td valign="top">Show all callers in the search scope of the selected function.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_show_callees.png" alt="Show Callees icon" ></div></td>
      <td valign="top"><strong>Show Callees</strong></td>
      <td valign="top">Show all members called by the currently selected function.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_show_history_list.png" alt="Show History List icon" ></div></td>
      <td valign="top"><strong>Show History List</strong></td>
      <td valign="top">This menu displays a history of previously displayed call hierarchies.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_refresh_view_contents.png" alt="Refresh View Contents icon" ></div></td>
      <td valign="top"><strong>Refresh View Contents</strong></td>
      <td valign="top">Refreshes the view to reflect the current state of the function.</td>
    </tr>
    <tr>
      <td valign="top"><div align="center"><img src="../images/icon_menu_white.png" alt="Menu icon" ></div></td>
      <td valign="top"><strong>View Menu</strong></td>
      <td valign="top">Provides commands for: <ul><li>Using working sets</li>
      <li>Showings Callers or Callees</li>
      <li>Show or hide file names</li>
      <li>Activate or deactivate filters</li></ul></td>
    </tr>
  </table>

<h3>Call Hierarchy view context menu commands </h3>

  <p>The Call Hierarchy view context menu commands include:</p>
  <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#999999" width="600">
    <tr>
      <td width="25%"><div align="center"><strong>Name</strong></div></td>
      <td width="75%"><div align="center"><strong>Description</strong></div></td>
    </tr>
    <tr>
      <td valign="top"><strong>Show Reference</strong></td>
      <td valign="top">Opens an editor view containing the referenced function call.</td>
    </tr>
    <tr>
      <td valign="top"><strong>Open</strong></td>
      <td valign="top">Opens an editor view containing the function reference.</td>
    </tr>
    <tr>
      <td valign="top"><strong>Focus on</strong></td>
      <td valign="top">Resets the view to show the selected function.</td>
    </tr>
    <tr>
      <td valign="top"><strong>Refactor...</strong></td>
      <td valign="top">Opens the <strong>Rename global function</strong> dialog.</td>
    </tr>
    <tr>
      <td valign="top"><strong>Declarations</strong></td>
      <td valign="top">Search the workspace, project, or working set for all function declarations and shows the result in the Search view.</td>
    </tr>
    <tr>
      <td valign="top"><strong>References</strong></td>
      <td valign="top">Search the workspace, project, or working set for all function references and shows the result in the <strong>Search</strong> view.</td>
    </tr>
  </table>

<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> <br>
  <a href="../concepts/cdt_c_dbg_info.htm">Debug information</a></p>
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> <br>
  <a href="cdt_o_views.htm">Views</a></p>
  <hr >
<img src="../images/nokiaCopyright.png" alt="Nokia Copyright Statement" > 
</body>

</html>

Back to the top