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

📄 gtags.1

📁 代码检索工具GLOBAL源码。可用来浏览分析LINUX源码。
💻 1
字号:
.\" This file is generated automatically by convert.pl from gtags/manual.in..TH GTAGS 1 "Aug 2005" "GNU Project".SH NAMEgtags \- create tag files for global..SH SYNOPSIS\fBgtags\fP [-ciIoqvw][-f \fIfile\fP][-n \fInumber\fP][\fIdbpath\fP].br.SH DESCRIPTION\fBGtags\fP recursively collect the source files underthe current directory,pickup symbols and write the cross-reference data into tag files(\'GTAGS\', \'GRTAGS\', \'GSYMS\' and \'GPATH\').You should execute this command at the root of the source tree..PPC, C++, yacc, java, PHP and Assembly source files are supported.Files whose names end in \'.c\' or \'.h\' are assumed to beC source files and are searched for C style routine and macrodefinitions.Files whose names end in \'.c++\' \'.cc\' \'.cpp\' \'.cxx\'\'.hxx\' \'.hpp\' \'.C\' \'.H\' are assumed to be C++ source files.Files whose names end in \'.y\' are assumed to be YACC source files.Files whose names end in \'.java\' are assumed to be Java source files.Files whose names end in \'.php\' \'.php3\' \'.phtml\' areassumed to be PHP source files.Files whose names end in \'.s\' or \'.S\'are assumed to be Assembler source files.Other files are searched for C style definitions..SH OPTIONSThe following options are available:.TP\fB-c\fP, \fB--compact\fPMake tag files with compact format..TP\fB--config\fP \fIname\fPShow the value of config variable \fIname\fP.If \fIname\fP is not specified then show whole of config entry..TP\fB-f\fP, \fB--file\fP \fIfile\fPRead from \fIfile\fP a list of file names which should beconsidered as the candidate of source files.By default, all files under the current directory areconsidered as the candidate.If \fIfile\fP is \'-\', read from standard input.File names must be separated by newline..TP\fB--gtagsconf\fP \fIfile\fPLoad user's configuration from \fIfile\fP..TP\fB--gtagslabel\fP \fIlabel\fP\fIlabel\fP is used as the label of configuration file.The default is default..TP\fB-i\fP, \fB--incremental\fPUpdate tag files incrementally. You had better use\fBglobal\fP(1) with the -u option..TP\fB-I\fP, \fB--idutils\fPMake index files for \fBid-utils\fP(1)..TP\fB-n\fP, \fB--max-args\fP \fInumber\fPMaximum number of arguments for \fBgtags-parser\fP(1).By default, gtags invokes the parser with argumentsas a lot as possible to decrease the frequency of invoking..TP\fB-o\fP, \fB--omit-gsyms\fPSuppress making \'GSYMS\' file.Use this option if you don't use -s option of \fBglobal\fP(1)..TP\fB-q\fP, \fB--quiet\fPQuiet mode..TP\fB-v\fP, \fB--verbose\fPVerbose mode..TP\fB-w\fP, \fB--warning\fPPrint warning messages..TP\fIdbpath\fPThe directory in which tag files are generated.The default is the current directory.It is useful when your source directory is on a read onlydevice like CDROM..SH EXAMPLES.nf	$ ls -F	Makefile      src/    lib/	$ gtags -v	$ global -x main	main              10 src/main.c  main (argc, argv) {.fi.SH FILES.TP\'GTAGS\'Tag file for function definitions..TP\'GRTAGS\'Tag file for function references..TP\'GSYMS\'Tag file for other symbols..TP\'GPATH\'Tag file for path of source files..TP\'/etc/gtags.conf\', \'$HOME/.globalrc\'Configuration file..SH ENVIRONMENTThe following environment variables affect the execution of \fBgtags\fP:.TP\fBGTAGSCONF\fPIf this variable is set, its value is used as theconfiguration file. The default is \'$HOME/.globalrc\'..TP\fBGTAGSLABEL\fPIf this variable is set, its value is used as the labelof configuration file. The default is default..TP\fBGTAGSCACHE\fPIf this variable is set, its value is used as the size ofbtree cache. The default is 500000 (bytes)..SH CONFIGURATIONThe following configuration variables affect the execution of \fBgtags\fP.You can see the default value for each variable with the \fB--config\fP option..TPGTAGS(string)If this variable is set, its value is used as thecommand line of parser for GTAGS. The default is \'gtags-parser -dt %s\'..TPGRTAGS(string)If this variable is set, its value is used as thecommand line of parser for GRTAGS. The default is \'gtags-parser -dtr %s\'..TPGSYMS(string)If this variable is set, its value is used as thecommand line of parser for GSYMS. The default is \'gtags-parser -dts %s\'..TPskip(comma separated list)\fBGtags\fP skips files which listed in this list.As a special exception, \fBgtags\fP collect values from multiple skip variables.If the value ends with '/', it assumed as a directory and \fBgtags\fP skips all files under it.If the value start with '/', it assumed relative path from the root of source directory..TPsuffixes(comma separated list)Suffixes of target source file.As a special exception, \fBgtags\fP collect values from multiple suffixes variables.This variable is obsoleted. If the langmap variable is defined\fBgtags\fP no longer refers this..TPformat(standard|compact)Format of tag files. The default is standard.Compact format is same to \fB-c\fP(\fB--compact\fP)..TPicase_path(boolean)Ignore case distinctions in the path.Suffixes check are affected by this capability..TPlangmap(comma separated list)Language mapping. Each comma-separated map consists ofthe language name, a colon, and a list of file extensions.Default mapping is 'c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx.hpp.C.H,php:.php.php3.phtml'..SH DIAGNOSTICS\fBGtags\fP exits with a non 0 value if an error occurred, 0 otherwise..SH "MESSAGE FORMAT"Verbose message has important level. The most important level is 0,the second is 1 and so on. All the message has level numbers leadingblanks..SH "SEE ALSO"\fBgtags-parser\fP(1),\fBglobal\fP(1),\fBhtags\fP(1)..PPGNU GLOBAL source code tag system.br(http://www.gnu.org/software/global/)..SH BUG\'GTAGS\', \'GRTAGS\' and \'GSYMS\' are very large.In advance of using this command, check the space of your disk..PPAssembler support is far from complete.It extracts only ENTRY() and ALTENTRY() from source file.Probably valid only for FreeBSD and Linux kernel source..PPThere is no concurrency control about tag files..PPSymbols in Assembly source files are not extracted for \'GSYMS\'..SH AUTHORTama Communications Corporation..SH HISTORYThe \fBgtags\fP command appeared in FreeBSD 2.2.2.

⌨️ 快捷键说明

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