mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00

Here's what I've changed: changes to the doc htm files: - added open definition -> added concepts/cdt_c_open_definitions.htm -> added images/openDefinition.png -> added images/open_definition_error.png -> updated images/openDeclaration.png -> updated images/open_declaration_error.png -> added tasks/cdt_t_open_definitions.htm -> updated links to point to open definition wherever open declaration is linked - information about the code reader buffer and properties in the menu -> added images/cdt_pref_parser.png -> added reference/cdt_o_parser_pref.htm (C/C++ Parser preferences) -> added reference/cdt_u_c_parser_codereader_cache_pref.htm -> added link to cdt_o_parser_pref.htm in reference/cdt_o_ref.htm - removed reference/cdt_u_shared_lib_view_pref.htm since it has no useful information (also removed the corresponding link in contexts_CDT_DEBUGGER.xml) - renamed the link absolute path "file:///E:/CDT/3.1/eclipse/org.eclipse.cdt.doc.user/images/indexer_import_largeproject1.PNG" in tasks/indexer_importing_large_project.html to the relative path "../images/indexer_import_largeproject1.PNG" dead links: removed: concepts/cdt_c_editor.htm -> <br><a href="../reference/cdt_u_editor_key_bind.htm">C/C++ editor key binding actions</a> removed: concepts/cdt_c_indexer_ctagsindexer.htm -> <a href="../tasks/cdt_t_indexer_timeout.htm"></a> removed: concepts/cdt_c_indexer_ctagsindexer.htm -> <a href="../reference/cdt_u_search_pref.htm">Search, C/C++ Preferences window</a> removed: concepts/cdt_c_indexer_fullindexer.htm -> <a href="../tasks/cdt_t_indexer_timeout.htm"></a> removed: concepts/cdt_c_indexer_fullindexer.htm -> <a href="../reference/cdt_u_search_pref.htm">Search, C/C++ Preferences window</a> removed: concepts/cdt_c_indexer_open_close.htm -> <a href="../tasks/cdt_t_indexer_timeout.htm"></a> removed: concepts/cdt_c_indexer_open_close.htm -> <a href="../reference/cdt_u_search_pref.htm">Search, C/C++ Preferences window</a> removed: concepts/cdt_c_indexer_prog_bar.htm -> <a href="../tasks/cdt_t_indexer_timeout.htm"></a> removed: concepts/cdt_c_indexer_prog_bar.htm -> <a href="../reference/cdt_u_search_pref.htm">Search, C/C++ Preferences window</a> removed: concepts/cdt_c_indexer.htm -> <a href="../tasks/cdt_t_indexer_timeout.htm"></a> removed: concepts/cdt_c_indexer.htm -> <a href="../reference/cdt_u_search_pref.htm">Search, C/C++ Preferences window</a> renamed to references/cdt_u_m_edit.htm: concepts/cdt-c_templates.htm -> <a href="../reference/cdt_u_menu_edit.htm">Edit menu</a> removed: concepts/cdt_o_concepts.htm -> <img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_c_indexer_prob_rep.htm">C/C++ Indexer Problem Reporting</a><br> removed: reference/cdt_u_m_project.htm -> Concepts/cdtconcepts-4.htm removed: reference/cdt_u_m_project.htm -> Tasks/cdttasks-106.htm removed: reference/cdt_o_ref.htm -> reference/cdt_u_mfile_rbcs.htm removed: reference/cdt_o_ref.htm -> reference/cdt_u_search_pref.htm renamed to cdt_o_mproj_pref.htm: reference/cdt_o_ref.htm -> reference/cdt_o_mproj_pref.htm removed: reference/cdt_u_m_project.htm -> Tasks/cdttasks-106.htm removed: tasks/cdt_o_tasks.htm -> <img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_t_indexer_prob_rep.htm">C/C++ Indexer Problem Reporting</a><br>
150 lines
No EOL
5.7 KiB
HTML
150 lines
No EOL
5.7 KiB
HTML
<!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>Searching for C/C++ elements</title>
|
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Searching for C/C++ elements</h1>
|
|
|
|
<p>It is recommended that you perform searches on successfully compiled
|
|
programs to ensure the accuracy of search results. It is important to familiarize yourself with the correct search syntax
|
|
to use to complete an effective search. It is also important to ensure that
|
|
include paths and symbols are correctly defined. For more information, see
|
|
<a href="cdt_t_proj_paths.htm">Including paths and symbols</a>.</p>
|
|
|
|
<p>See <a href="../concepts/cdt_c_search.htm">C/C++ search</a>, for more information on:</p>
|
|
|
|
<ul>
|
|
<li>What you can search for</li>
|
|
<li>How to limit your search</li>
|
|
<li>How to use wildcard characters in your search</li>
|
|
<li>Syntax examples</li>
|
|
</ul>
|
|
|
|
|
|
|
|
<p>Performing a C/C++ Search can be done in a number of different ways but regardless of the manner chosen the same information must be provided to C/C++ Search.</p>
|
|
|
|
The info required to do a search is:
|
|
|
|
<table border="1" cellpadding="2" valign="top">
|
|
<tr>
|
|
<td valign="top"><b>Search string</b></td>
|
|
<td valign="top">this is the name of the element you are looking for. See <a href="../concepts/cdt_c_search.htm">C/C++ search</a> for more information on how to specify wildcard searches and how to further refine your searches by using fully qualified names</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><b>Search For </b></td>
|
|
<td valign="top">this is the element type that you wish to search for. You can also select to search on ‘Any Element’ which will perform the search on a combination of all elements</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><b>Limit To</b></td>
|
|
<td valign="top">this allows you to limit your search to declarations, definitions or references. You can also select ‘All Occurrences’ which will search for declarations, definitions and references that match the element</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><b>Scope</b></td>
|
|
<td valign="top">this allows the user to limit the scope of the search. The three available scopes are:
|
|
<table border="0" cellpadding="2">
|
|
<tr>
|
|
<td valign="top"><b>Workspace</b></td>
|
|
<td valign="top">this searches all of the open projects in the workspace</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><b>Selected Resources</b></td>
|
|
<td valign="top">this option becomes enabled whenever something is selected in one of the following views in the C/C++ perspective:
|
|
<ul>
|
|
<li>C/C++ Projects</li>
|
|
<li>Navigator</li>
|
|
<li>Search</li>
|
|
<li>Outline</li>
|
|
</ul>
|
|
<p>The scope will be limited to whatever element is selected in the view.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><b>Working Set</b></td>
|
|
<td valign="top">working sets can be selected and created </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>There are 3 main ways for initiating a C/C++ search:
|
|
<ul>
|
|
<li>Using the <b>C/C++ Search</b> dialog</li>
|
|
<li>Selecting an element in the <b>Editor</b> view</li>
|
|
<li>Selecting an element in the <b>C/C++ Projects</b> view or Selecting an element from the <b>Outline</b> view</li>
|
|
</ul>
|
|
</p>
|
|
|
|
|
|
|
|
<h3>Using the C/C++ Search dialog</h3>
|
|
<p> <img src="../images/search.png" alt="Search dialog box"></p>
|
|
|
|
<ol>
|
|
<li>Enter the search string in the <b>Search String</b> field (optional mark it case sensitive). <br>
|
|
<b>Note: </b>that previous search queries (from the same work session) are remembered and can be accessed via the drop down list.</li>
|
|
<li>Select the <b>Search For</b> element.</li>
|
|
<li>Select the <b>Limit To</b>.</li>
|
|
<li>Select the <b>Scope</b>.</li>
|
|
<li>Press <b>Search</b>.</li>
|
|
</ol>
|
|
<p>Results are displayed in the <b>Search</b> view.</p>
|
|
|
|
|
|
<h3>Selecting an element in the Editor view</h3>
|
|
<ol>
|
|
<li>Select the desired element in the editor.</li>
|
|
<li>Right click and select <b>All Declarations</b> or <b>All References</b> and the scope you wish to search.</li>
|
|
</ol>
|
|
<p>Results are displayed in the <b>Search</b> view.</p>
|
|
|
|
|
|
|
|
<h3>Selecting an element in C/C++ Projects or Outline View</h3>
|
|
|
|
<ol>
|
|
<li>Select the desired element in the tree.</li>
|
|
<li>Right click and select <b>All Declarations</b> or <b>All References</b> and the scope you wish to search.</li>
|
|
</ol>
|
|
<p>Results are displayed in the <b>Search</b> view.</p>
|
|
|
|
|
|
<p>For more information, see:
|
|
<li><b>Workbench User Guide > Concepts > Views > Search view</b></li>
|
|
<li><b>Workbench User Guide > Concepts > Workbench > Working Set</b></li>
|
|
<li><b>Workbench User Guide > Tasks > Navigating and finding resources</b></li>
|
|
|
|
</ul>
|
|
|
|
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
<br>
|
|
<a href="../concepts/cdt_c_search.htm">C/C++ search</a><br>
|
|
<a href="../concepts/cdt_c_indexer.htm">C/C++ Indexer</a><br>
|
|
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
|
|
<a href="../concepts/cdt_c_open_declarations.htm">Open Declarations</a><br>
|
|
<a href="../concepts/cdt_c_open_definitions.htm">Open Definitions</a>
|
|
</p>
|
|
|
|
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"><br>
|
|
<a href="cdt_t_sel_search.htm">Selection Searching for C/C++ elements</a><br>
|
|
<a href="cdt_t_open_declarations.htm">Navigate to C/C++ declarations</a><br>
|
|
<a href="cdt_t_open_definitions.htm">Navigate to C/C++ definitions</a>
|
|
</p>
|
|
|
|
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
<br>
|
|
<a href="../reference/cdt_u_search.htm">C/C++ search page, Search dialog box</a></p>
|
|
<p> </p>
|
|
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
|
|
|
|
</body>
|
|
|
|
</html> |