⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctags.html

📁 ctags的最新版5.7,可以比较5.6版看看,免费下载
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td width="11%"></td><td width="89%"><p><b>&minus;&minus;filter</b>[=<i>yes</i>|<i>no</i>]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Causes <b>ctags</b> to behave as a filter, reading sourcefile names from standard input and printing their tags tostandard output on a file-by-file basis. If<b>&minus;&minus;sorted</b> is enabled, tags are sorted onlywithin the source file in which they are defined. File namesare read from standard input in line-oriented input mode(see note for <b>&minus;L</b> option) and only after filenames listed on the command line or from any file suppliedusing the <b>&minus;L</b> option. When this option isenabled, the options <b>&minus;f</b>, <b>&minus;o</b>, and<b>&minus;&minus;totals</b> are ignored. This option isquite esoteric and is disabled by default. This option mustappear before the first file name.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;filter&minus;terminator</b>=<i>string</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies a string to print to standard output followingthe tags for each file name parsed when the<b>&minus;&minus;filter</b> option is enabled. This maypermit an application reading the output of ctags todetermine when the output for each file is finished. Notethat if the file name read is a directory and<b>&minus;&minus;recurse</b> is enabled, this string will beprinted only one once at the end of all tags found for bydescending the directory. This string will always beseparated from the last tag line for the file by itsterminating newline. This option is quite esoteric and isempty by default. This option must appear before the firstfile name.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;format</b>=<i>level</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Change the format of the output tag file. Currently theonly valid values for <i>level</i> are <i>1</i> or <i>2</i>.Level 1 specifies the original tag file format and level 2specifies a new extended format containing extension fields(but in a manner which retains backward-compatibility withoriginal <b>vi</b>(1) implementations). The default level is2. This option must appear before the first file name.[Ignored in etags mode]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;help</b></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Prints to standard output a detailed usage description,and then exits.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;if0</b>[=<i>yes</i>|<i>no</i>]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Indicates a preference as to whether code within an&quot;#if 0&quot; branch of a preprocessor conditionalshould be examined for non-macro tags (macro tags are alwaysincluded). Because the intent of this construct is todisable code, the default value of this option is <i>no</i>.Note that this indicates a preference only and does notguarantee skipping code within an &quot;#if 0&quot; branch,since the fall-back algorithm used to generate tags whenpreprocessor conditionals are too complex follows allbranches of a conditional. This option is disabled bydefault.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;&lt;LANG&gt;&minus;kinds</b>=<i>[+|&minus;]kinds</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies a list of language-specific kinds of tags (orkinds) to include in the output file for a particularlanguage, where <b>&lt;LANG&gt;</b> is case-insensitive andis one of the built-in language names (see the<b>&minus;&minus;list&minus;languages</b> option for acomplete list). The parameter <i>kinds</i> is a group ofone-letter flags designating kinds of tags (particular tothe language) to either include or exclude from the output.The specific sets of flags recognized for each language,their meanings and defaults may be list using the<b>&minus;&minus;list&minus;kinds</b> option. Each letter orgroup of letters may be preceded by either &rsquo;+&rsquo;to add it to, or &rsquo;&minus;&rsquo; to remove it from,the default set. In the absence of any preceding&rsquo;+&rsquo; or &rsquo;&minus;&rsquo; sign, only thosekinds explicitly listed in <i>kinds</i> will be included inthe output (i.e. overriding the default for the specifiedlanguage).</p><!-- INDENTATION --><p>As an example for the C language, in order to addprototypes and external variable declarations to the defaultset of tag kinds, but exclude macros, use<b>&minus;&minus;c&minus;kinds</b>=<i>+px&minus;d</i>; toinclude only tags for functions, use<b>&minus;&minus;c&minus;kinds</b>=<i>f</i>.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;langdef</b>=<i>name</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Defines a new user-defined language, <i>name</i>, to beparsed with regular expressions. Once defined, <i>name</i>may be used in other options taking language names. Thetypical use of this option is to first define the language,then map file names to it using<i>&minus;&minus;langmap</i>, then specify regularexpressions using<i>&minus;&minus;regex&minus;&lt;LANG&gt;</i> to define howits tags are found.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;langmap</b>=<i>map[,map[...]]</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Controls how file names are mapped to languages (see the<b>&minus;&minus;list&minus;maps</b> option). Eachcomma-separated <i>map</i> consists of the language name(either a built-in or user-defined language), a colon, and alist of file extensions and/or file name patterns. A fileextension is specified by preceding the extension with aperiod (e.g. &quot;.c&quot;). A file name pattern isspecified by enclosing the pattern in parentheses (e.g.&quot;([Mm]akefile)&quot;). If appropriate support isavailable from the runtime library of your C compiler, thenthe file name pattern may contain the usual shell wildcardscommon on Unix (be sure to quote the option parameter toprotect the wildcards from being expanded by the shellbefore being passed to <b>ctags</b>). You can determine ifshell wildcards are available on your platform by examiningthe output of the <b>&minus;&minus;version</b> option, whichwill include &quot;+wildcards&quot; in the compiled featurelist; otherwise, the file name patterns are matched againstfile names using a simple textual comparison. When mapping afile extension, it will first be unmapped from any otherlanguages.</p><!-- INDENTATION --><p>If the first character in a map is a plus sign, then theextensions and file name patterns in that map will beappended to the current map for that language; otherwise,the map will replace the current map. For example, tospecify that only files with extensions of .c and .x are tobe treated as C language files, use&quot;<b>&minus;&minus;langmap</b>=<i>c:.c.x</i>&quot;; toalso add files with extensions of .j as Java language files,specify&quot;<b>&minus;&minus;langmap</b>=<i>c:.c.x,java:+.j</i>&quot;.To map makefiles (e.g. files named either&quot;Makefile&quot;, &quot;makefile&quot;, or having theextension &quot;.mak&quot;) to a language called&quot;make&quot;, specify&quot;<b>&minus;&minus;langmap</b>=<i>make:([Mm]akefile).mak</i>&quot;.To map files having no extension, specify a period notfollowed by a non-period character (e.g. &quot;.&quot;,&quot;..x&quot;, &quot;.x.&quot;). To clear the mapping fora particular language (thus inhibiting automatic generationof tags for that language), specify an empty extension list(e.g.&quot;<b>&minus;&minus;langmap</b>=<i>fortran:</i>&quot;).To restore the default language mappings for all aparticular language, supply the keyword &quot;default&quot;for the mapping. To specify restore the default languagemappings for all languages, specify&quot;<b>&minus;&minus;langmap</b>=<i>default</i>&quot;.Note that file extensions are tested before file namepatterns when inferring the language of a file.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;language&minus;force</b>=<i>language</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>By default, <b>ctags</b> automatically selects thelanguage of a source file, ignoring those files whoselanguage cannot be determined (see <b>SOURCE FILES</b>,above). This option forces the specified <i>language</i>(case-insensitive; either built-in or user-defined) to beused for every supplied file instead of automaticallyselecting the language based upon its extension. Inaddition, the special value <i>auto</i> indicates that thelanguage should be automatically selected (which effectivelydisables this option).</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;languages</b>=<i>[+|&minus;]list</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies the languages for which tag generation isenabled, with <i>list</i> containing a comma-separated listof language names (case-insensitive; either built-in oruser-defined). If the first language of <i>list</i> is notpreceded by either a &rsquo;+&rsquo; or&rsquo;&minus;&rsquo;, the current list will be clearedbefore adding or removing the languages in <i>list</i>.Until a &rsquo;&minus;&rsquo; is encountered, each languagein the list will be added to the current list. As either the&rsquo;+&rsquo; or &rsquo;&minus;&rsquo; is encountered inthe list, the languages following it are added or removedfrom the current list, respectively. Thus, it becomes simpleto replace the current list with a new one, or to add orremove languages from the current list. The actual list offiles for which tags will be generated depends upon thelanguage extension mapping in effect (see the<b>&minus;&minus;langmap</b> option). Note that alllanguages, including user-defined languages are enabledunless explicitly disabled using this option. Language namesincluded in <i>list</i> may be any built-in language or onepreviously defined with <b>&minus;&minus;langdef</b>. Thedefault is &quot;all&quot;, which is also accepted as avalid argument. See the<b>&minus;&minus;list&minus;languages</b> option for acomplete list of the built-in language names.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;license</b></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Prints a summary of the software license to standardoutput, and then exits.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>&minus;&minus;line&minus;directives</b>[=<i>yes</i>|<i>no</i>]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void"       cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies whether &quot;#line&quot; directives should berecognized. These are present in the output of preprocessorsand contain the line number, and possibly the file name, ofthe original source file(s) from which the preprocessoroutput file was generated. When enabled, this option willcause <b>ctags</b> to generate tag entries marked with thefile names and line numbers of their locations originalsource file(s), instead of their actual locations in thepreprocessor output. The actual file names placed into thetag file will have the same leading path components as thepreprocessor output file, since it is assumed that theoriginal source files are located relative to thepreprocessor output file (unless, of course, the #line

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -