blob: 2027aa7bd79f0c5750fa7350181a69dbe1f1dc96 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../help.css">
<title>Analyze code</title>
</head>
<body>
<h1>Analyze code</h1>
<p>You can view classes and
members, functions and their relationships using the <strong>Remote Type Hierarchy</strong> and <strong>Remote Call Hierarchy</strong> views.</p>
<p>To use the <strong>Remote Type Hierarchy</strong> view:</p>
<ol>
<li>In the <strong>Project Explorer</strong> view, expand your project. Select your source file
and open it in the remote C/C++ editor.<br>
<img src="../../images/TH_task_01.png" alt="Select file from Project Explorer and open it in the editor"></li>
<li>Select the element name in the editor. Right-click and select <strong>Open Type Hierarchy</strong>.<br>
<img src="../../images/TH_task_02.png" alt="Select element name from editor"></li>
<li>The <strong>Remote Type Hierarchy</strong> view opens up and shows the element's hierarchy.<br>
<img src="../../images/TH_task_03.png" alt="Remote Type Hierarchy view showing element's hierarchy"></li>
<li>Click the <strong>Show the Supertype Hierarchy</strong> button to see a hierarchy showing the type's parent
elements. This view shows the results of going up the type hierarchy.<br>
<img src="../../images/TH_task_04.png" alt="Show the Supertype Hierarchy"></li>
<li>Click the <strong>Show the Subtype Hierarchy</strong> button.<br>
<img src="../../images/TH_task_05.png" alt="Show the Subtype Hierarchy"></li>
<li>Click the <strong>Show the Subtype Hierarchy</strong> button.<br>
<img src="../../images/TH_task_05.png" alt="Show the Subtype Hierarchy"></li>
<li>In the hierarchy tree pane, select any element, right-click and select <strong>Focus On</strong>.
The selected element and its hierarchy is presented in the hierarchy view.<br>
<img src="../../images/TH_task_06.png" alt="Focus on an element"><br>
<img src="../../images/TH_task_07.png" alt="Focus on a new element"></li>
</ol>
<p>To use the <strong>Remote Call Hierarchy</strong> view:</p>
<ol>
<li>In the <strong>Project Explorer</strong> view, expand your project. Select your source file
and open it in the remote C/C++ editor.<br>
<img src="../../images/CH_task_01.png" alt="Select file from Project Explorer and open it in the editor"></li>
<li>Select the function name in the editor. Right-click and select <strong>Open Call Hierarchy</strong>.<br>
<img src="../../images/CH_task_02.png" alt="Select function name from editor"></li>
<li>The <strong>Remote Call Hierarchy</strong> view opens up and shows the function's callers.<br>
<img src="../../images/CH_task_03.png" alt="Remote Call Hierarchy view showing function's callers"></li>
<li>To get the callees of the function. Click the <strong>Show Callees</strong> button.<br>
<img src="../../images/CH_task_04.png" alt="Show the callees"></li>
</ol>
<span class="bold">Related reference</span>
<br>
<a href="../reference/remote_type_heirarchy.html">Remote Type Hierarchy view</a>
<br>
<a href="../reference/remote_call_hierarchy.html">Remote Call Hierarchy view</a>
<br>
<br>
</body>
</html>