carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/concepts/cdt_c_search.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>C/C++ search</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<h1>C/C++ search</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<p>You can conduct a fully or partially qualified name search. Further 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
qualifying a search increases the accuracy and relevance of search results. The 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
sections below provide guidance on how to control the scope of your search 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
through the use of search delimiters, correct syntax, and wildcards.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
<p>You can search for:<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
	<li>language constructs within:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
		<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
			<li>projects in your workspace</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
			<li>selected resources from various views</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
			<li>working sets</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
		</ul></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
	<li>a working set for references to particular elements</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
	<li>declarations of particular elements</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
	<li>definitions of particular elements</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
	<li>references of particular elements</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
For information on working sets, see <b>Workbench User Guide &gt; Concepts &gt; Workbench &gt; Working sets</b><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
  <h2>What you can search for</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
  <p>The table below lists the element types that you can search for and special 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
  considerations to note when searching for a given element type. You can search 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
  for some or all of the element types matching a search string that you 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
  specify. If you choose to search for matching elements, all types, macros, and typdefs are included in the search.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="60%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
    <td width="19%"><b>Element</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
    <td width="81%"><b>Note</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
    <td width="19%">&nbsp;Class/Struct</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
    <td width="81%">Searches for classes and structs.<p>You can further qualify 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
    the search by specifying &quot;class&quot; or &quot;struct&quot; in front of the name 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
    that you are 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
    searching for. Specifying &quot;class&quot; or &quot;struct&quot; also allows you to 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
    search for anonymous classes and structures.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
    <td width="19%">&nbsp;Function</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
    <td width="81%">Searches for global functions or functions in a namespace 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
    (functions that are not members of a class, struct, or union).<p>You can 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
    specify parameters to further qualify your search. When specifying a 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
    parameter list, everything between the parentheses should be valid C/C++ 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
    syntax.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
    <p>Do not specify the return type of the function.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
    <td width="19%">&nbsp;Variable</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
    <td width="81%">Searches for variables that are not members of a class, 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
    struct, or union.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
    <td width="19%">&nbsp;Union</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
    <td width="81%">Searches for unions.<p>Anonymous unions can be searched for by 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
    specifying &quot;union&quot; as the search pattern.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
    <td width="19%">&nbsp;Method</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
    <td width="81%">Searches for methods that are members of a class, struct, or 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
    union.<p>Searching for methods also finds constructors and destructors. See 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
    above note for functions.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
    <td width="19%">&nbsp;Field </td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
    <td width="81%">Searches for fields that are members of a class, struct, or 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
    union.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
    <td width="19%">&nbsp;Enumeration</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
    <td width="81%">Searches for enumerations.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
    <td width="19%">&nbsp;Enumerator</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    92
    <td width="81%">Searches for enumerators.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    93
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    94
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    95
    <td width="19%">&nbsp;Namespace</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    96
    <td width="81%">Searches for namespaces.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    97
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    98
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    99
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   100
<h2>How you can limit your search</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   101
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   102
<p>You can limit your search to one or all of the following:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   103
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   104
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   105
  <li>Declarations</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   106
  <li>References</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   107
  <li>Definitions (for functions, methods, variables and fields)</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   108
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   109
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   110
<p>You can control the scope of the search by specifying which of the following 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   111
is to be searched:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   112
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   113
  <li>Workspace</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   114
  <li>Working Set</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   115
  <li>Selected Resources</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   116
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   117
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   118
<h2>Wildcard characters</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   119
<p>You can use wildcard characters to further refine your search.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   120
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="60%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   121
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   122
    <td width="49%"><b>Use this wildcard character</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   123
    <td width="51%"><b>To search for this</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   124
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   125
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   126
    <td width="49%">&nbsp;<samp>*</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   127
    <td width="51%">Any string<p><b>Tip:<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   128
    </b> Use the character <samp>*</samp> to search for 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   129
    operators that begin with *. See syntax examples in the table below.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   130
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   131
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   132
    <td width="49%">&nbsp;<samp>?</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   133
    <td width="51%">A single character</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   134
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   135
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   136
    <td width="49%">&nbsp;<samp>::</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   137
    <td width="51%">Nested elements</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   138
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   139
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   140
<p><b>Tip: </b>Do not use wild cards between the brackets of a function or 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   141
method pattern.  For example, the search 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   142
string <samp>f( * )</samp> is an invalid search that results in a search for any function <samp>f</samp> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   143
    because 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   144
the asterisk is interpreted as a pointer rather than a wild card.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   145
<h2>Syntax examples</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   146
<p>The table below provides syntax examples and an explanation for each example 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   147
to help you conduct an effective search.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   148
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="60%" height="400">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   149
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   150
    <td width="64%" height="16"><b>Syntax</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   151
    <td width="36%" height="16"><b>Searches for this</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   152
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   153
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   154
    <td width="64%" height="17">&nbsp; <samp>::*::*::A</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   155
    <td width="36%" height="17">A nested element two levels deep</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   156
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   157
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   158
    <td width="64%" height="32">&nbsp; <samp>::*::*::A?</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   159
    <td width="36%" height="32">Any two-letter name that begins with A and is two levels 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   160
    deep</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   161
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   162
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   163
    <td width="64%" height="32">&nbsp; <samp>::A</samp> </td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   164
    <td width="36%" height="32">Searches for A not nested in anything</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   165
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   166
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   167
    <td width="64%" height="17">&nbsp; <samp>*()</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   168
    <td width="36%" height="17">Any function taking no parameters</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   169
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   170
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   171
    <td width="64%" height="32">&nbsp;&nbsp;<samp>*( A * )</samp> </td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   172
    <td width="36%" height="32">Any function taking 1 parameter that is a pointer to type 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   173
    A</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   174
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   175
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   176
    <td width="64%" height="33">&nbsp;&nbsp;<samp>f( int * )</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   177
    <td width="36%" height="33">Will search for function f taking 1 parameter that is an 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   178
    int *</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   179
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   180
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   181
    <td width="64%" height="64">&nbsp;&nbsp;<samp>f( const char [ 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   182
    ], A &amp; )</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   183
    <td width="36%" height="64">Will search for a function f, taking 2 parameters; one is a 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   184
    const char array, the other is a reference to type A</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   185
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   186
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   187
    <td width="64%" height="32">&nbsp;<samp>operator \*</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   188
    <td width="36%" height="32">Finds only operator *</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   189
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   190
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   191
    <td width="64%" height="32">&nbsp;<samp>operator \*=</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   192
    <td width="36%" height="32">Finds only operator *=</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   193
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   194
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   195
    <td width="64%" height="16">&nbsp;<samp>operator *</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   196
    <td width="36%" height="16">Finds all operators</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   197
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   198
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   199
    <td width="64%" height="15">&nbsp;<samp>class</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   200
    <td width="36%" height="15">Searches for anonymous classes</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   201
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   202
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   203
    <td width="64%" height="16"> &nbsp;<samp>struct</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   204
    <td width="36%" height="16">Searches for anonymous structs</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   205
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   206
  <tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   207
    <td width="64%" height="16"> &nbsp;<samp>union</samp></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   208
    <td width="36%" height="16">Searches for anonymous unions</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   209
  </tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   210
  </table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   211
<h2>Search results</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   212
<p>Search results are displayed in the Search view. You can sort your search by Name, Parent Name and Path. You can also repeat 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   213
your last search.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   214
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   215
<h2>Search Concepts</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   216
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   217
<h3>Declarations</h3>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   218
<p>According to the ANSI C++ Spec, a declaration is a statement that “introduces a name into a translation unit or re-declares a name that has been previously introduced by a previous declaration.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   219
<p>All C/C++ search elements can be searched for declarations.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   220
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   221
<h3>Definitions</h3>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   222
<p>Most declarations are also definitions; in other words, they also define the entity for they declare the name for. However there are some elements that can have separate definitions from their declarations.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   223
<p>For C/C++ search the following elements can be searched for definitions:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   224
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   225
	<li>Functions/Methods – the definition is where the code implementation resides</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   226
	<li>Variable:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   227
		<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   228
			<li>Extern – the definition is where the variable is initialized</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   229
			<li>Non extern - the definition of a variable is where it is declared </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   230
		</ol></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   231
	<li>Field:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   232
		<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   233
			<li>Static fields - the definition of a static field is where it gets initialized</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   234
			<li>Non static fields - the definition corresponds to the fields declaration</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   235
		</ol></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   236
	<li>Namespace – the definition of a namespace is the same as its declaration</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   237
</ul></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   238
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   239
<h3>References</h3>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   240
<p>By selecting references, C/C++ search will return all of the places the selected element is used.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   241
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   242
<h3>All Occurrences</h3>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   243
<p>Selecting ‘All Occurrences’ in the Limit To section will result in a search for declarations, definitions (if applicable) and references for whatever element or elements have been selected.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   244
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   245
<h3>Any Element</h3>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   246
<p>Selecting ‘Any Element’ in the Search For section will result in a search for all of the listed elements plus macros and typedefs.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   247
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   248
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   249
<p>For more information, see:<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   250
  <li> <b>Workbench User Guide &gt; Concepts &gt; Views &gt; Search view</b></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   251
  <li> <b>Workbench User Guide &gt; Tasks &gt; Navigating and finding resources</b></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   252
  </ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   253
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   254
<a href="../concepts/cdt_c_indexer.htm">C/C++ Indexer</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   255
<a href="cdt_c_projects.htm">CDT Projects</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   256
<a href="cdt_c_open_declarations.htm">Open Declaration</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   257
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   258
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   259
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   260
<a href="../tasks/cdt_t_search.htm">Searching for C/C++ elements</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   261
<a href="../tasks/cdt_t_open_declarations.htm">Navigating to C/C++ declarations</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   262
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   263
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   264
<a href="../reference/cdt_u_search.htm">C/C++ search page, Search dialog box</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   265
<a href="../reference/cdt_u_icons.htm">C/C++ perspective icons</a></p><p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   266
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   267
<img src="../images/ng00_07.gif" ALT="IBM Copyright Statement" ></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   268
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   269
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   270
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   271
</html>