comparison man/maintaining.texi @ 75682:280d520f6407

(Tag Syntax): Now --members is the default for etags, not for ctags yet.
author Francesco Potortì <pot@gnu.org>
date Mon, 05 Feb 2007 21:49:34 +0000
parents 3d45362f1d38
children e0c0a6271f90 edb6a93b3b2b 52a7f3f50b89
comparison
equal deleted inserted replaced
75681:5e4a56d28815 75682:280d520f6407
181 @itemize @bullet 181 @itemize @bullet
182 @item 182 @item
183 In C code, any C function or typedef is a tag, and so are definitions of 183 In C code, any C function or typedef is a tag, and so are definitions of
184 @code{struct}, @code{union} and @code{enum}. 184 @code{struct}, @code{union} and @code{enum}.
185 @code{#define} macro definitions, @code{#undef} and @code{enum} 185 @code{#define} macro definitions, @code{#undef} and @code{enum}
186 constants are also 186 constants are also
187 tags, unless you specify @samp{--no-defines} when making the tags table. 187 tags, unless you specify @samp{--no-defines} when making the tags table.
188 Similarly, global variables are tags, unless you specify 188 Similarly, global variables are tags, unless you specify
189 @samp{--no-globals}. Use of @samp{--no-globals} and @samp{--no-defines} 189 @samp{--no-globals}, and so are struct members, unless you specify
190 can make the tags table file much smaller. 190 @samp{--no-members}. Use of @samp{--no-globals}, @samp{--no-defines}
191 and @samp{--no-members} can make the tags table file much smaller.
191 192
192 You can tag function declarations and external variables in addition 193 You can tag function declarations and external variables in addition
193 to function definitions by giving the @samp{--declarations} option to 194 to function definitions by giving the @samp{--declarations} option to
194 @code{etags}. You can tag struct members with the @samp{--members} 195 @code{etags}.
195 option.
196 196
197 @item 197 @item
198 In C++ code, in addition to all the tag constructs of C code, member 198 In C++ code, in addition to all the tag constructs of C code, member
199 functions are also recognized, and optionally member variables if you 199 functions are also recognized; member variables are also recognized,
200 use the @samp{--members} option. Tags for variables and functions in 200 unless you use the @samp{--no-members} option. Tags for variables and
201 classes are named @samp{@var{class}::@var{variable}} and 201 functions in classes are named @samp{@var{class}::@var{variable}} and
202 @samp{@var{class}::@var{function}}. @code{operator} definitions have 202 @samp{@var{class}::@var{function}}. @code{operator} definitions have
203 tag names like @samp{operator+}. 203 tag names like @samp{operator+}.
204 204
205 @item 205 @item
206 In Java code, tags include all the constructs recognized in C++, plus 206 In Java code, tags include all the constructs recognized in C++, plus
327 Tags for subroutines are named @samp{@var{package}::@var{sub}}. The 327 Tags for subroutines are named @samp{@var{package}::@var{sub}}. The
328 name for subroutines defined in the default package is 328 name for subroutines defined in the default package is
329 @samp{main::@var{sub}}. 329 @samp{main::@var{sub}}.
330 330
331 @item 331 @item
332 In PHP code, tags are functions, classes and defines. When using the 332 In PHP code, tags are functions, classes and defines. Vars are tags
333 @samp{--members} option, vars are tags too. 333 too, unless you use the @samp{--no-members} option.
334 334
335 @item 335 @item
336 In PostScript code, the tags are the functions. 336 In PostScript code, the tags are the functions.
337 337
338 @item 338 @item