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

📄 ctags.1

📁 Unix操作系统minix 2.0源码
💻 1
字号:
.TH CTAGS 1.SH NAMEctags - Generates "tags" and (optionally) "refs" files.SH SYNOPSIS\fBctags\fP [\fB-stvra\fP] \fIfilesnames\fP....SH DESCRIPTION\fIctags\fP generates the "tags" and "refs" filesfrom a group of C source files.The "tags" file is used by Elvis' ":tag" command,control-] command,and -t option.The "refs" file is sometimes used by the \fIref(1)\fP program..PPEach C source file is scanned for #define statements andglobal function definitions.The name of the macro or function becomes the name of a tag.For each tag, a line is added to the "tags" file which contains:.RS.nf       - the name of the tag       - a tab character       - the name of the file containing the tag       - a tab character       - a way to find the particular line within the file..RE.fi.PPThe filenames list will typically be the names of all C sourcefiles in the current directory, like this:.RS.nf$ ctags -stv *.[ch].RE.fi.SH OPTIONS.IP \fB-t\fRInclude typedefs.A tag will be generated for each user-defined type.Also tags will be generated for struct and enum names.Types are considered to be global if they are defined in a header file,and static if they are defined in a C source file..IP \fB-v\fRInclude variable declarations.A tag will be generated for each variable, except for those that are declaredinside the body of a function..IP \fB-s\fRInclude static tags.\fICtags\fR will normally put global tags in the "tags" file, and silently ignorethe static tags.This flag causes both global and static tags to be added.The name of a static tag is generated by prefixing the name of the declareditem with the name of the file where it is defined, with a colon in between.For example, "static foo(){}" in "bar.c" results in a tag named "bar.c:foo"..IP \fB-r\fPThis causes \fIctags\fP to generate both "tags" and "refs".Without \fB-r\fP, it would only generate "tags"..IP \fB-a\fRAppend to "tags", and maybe "refs".Normally, \fIctags\fR overwrites these files each time it is invoked.This flag is useful when you have to many files in the current directoryfor you to list them on a single command-line;it allows you to split the arguments among several invocations..SH FILES.IP tagsA cross-reference that lists each tag name, the name of the source file thatcontains it, and a way to locate a particular line in the source file..IP refsThe "refs" file contains the definitions for each tag in the "tags" file,and very little else.This file can be useful, for example, when licensing restrictions preventyou from making the source code to the standard C library readable by everybody,but you still everybody to know what arguments the library functions need..SH BUGS.PP\fIctags\fR is sensitive to indenting and line breaks.Consequently, it might not discover all of the tags in a file thatis formatted in an unusual way..SH "SEE ALSO"elvis(1), refs(1).SH AUTHOR.nfSteve Kirkendallkirkenda@cs.pdx.edu.fi

⌨️ 快捷键说明

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