| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html> |
| <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>Using the <b>Remote Type Hierarchy</b> and <b>Remote Call Hierarchy</b> views, you can view classes and |
| members, functions and their relationships in a variety of different ways</p> |
| |
| <p>To use the <b>Remote Type Hierarchy</b> view:</p> |
| <ol> |
| <li>In the <b>Project Explorer</b> 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 <b>Open Type Hierarchy</b>.<br> |
| <img src="../../images/TH_task_02.png" alt="Select element name from editor"></li> |
| <li>The <b>Remote Type Hierarchy</b> 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 <b>Show the Supertype Hierarchy</b> button to see a hierarchy showing the types'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 <b>Show the Subtype Hierarchy</b> button.<br> |
| <img src="../../images/TH_task_05.png" alt="Show the Subtype Hierarchy"></li> |
| <li>Click the <b>Show the Subtype Hierarchy</b> 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 <b>Focus On</b>. |
| 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 <b>Remote Call Hierarchy</b> view:</p> |
| <ol> |
| <li>In the <b>Project Explorer</b> 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 <b>Open Call Hierarchy</b>.<br> |
| <img src="../../images/CH_task_02.png" alt="Select function name from editor"></li> |
| <li>The <b>Remote Call Hierarchy</b> 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 <b>Show Callees</b> button.<br> |
| <img src="../../images/CH_task_04.png" alt="Show the callees"></li> |
| </ol> |
| |
| |
| <b>Related reference</b> |
| <br> |
| <a href="../reference/remote_type_heirarchy.html">Remote Type Hierarchy view</a> |
| <br> |
| <a href="../reference/remote_call_heirarchy.html">Remote Call Hierarchy view</a> |
| <br> |
| <br> |
| |
| </body> |
| </html> |