📄 gtags-parser.ref
字号:
@c This file is generated automatically by convert.pl from gtags-parser/manual.in.@unnumberedsubsec NAMEgtags-parser - print cross reference list for gtags.@unnumberedsubsec SYNOPSIS@noindent@quotationgtags-parser [-bdenrstvw] file ...@*@end quotation@unnumberedsubsec DESCRIPTIONGtags-parser print cross reference list for gtags(1)from the specified C, C++, yacc, java, PHP and Assembly sourceto standard output.Each line of output contains the object name,the line number which it appears, the file in which it is defined,and a line image separated by white-space.It's same with the output of ctags(1) with @samp{-x} option.Depending upon the options provided to gtags-parser,objects will consist of function definitions, function referencesand other symbols.Files whose names end in @file{.c} or @file{.h} are assumed to be Csource files and are searched for C style routine and macro definitions.Files whose names end in @file{.c++} @file{.cc} @file{.cpp}@file{.cxx} @file{.hxx} @file{.hpp} @file{.C} @file{.H} are assumed to be C++source files.Files whose names end in @file{.y} are assumed to be YACC source files.Files whose names end in @file{.java} are assumed to be Java source files.Files whose names end in @file{.php} @file{.php3} @file{.phtml} areassumed to be PHP source files.Files whose names end in @file{.s} or @file{.S} are assumed to beAssembler source files.Other files are searched for C style definitions.Yacc files each have a special tag. yyparse is the startof the second section of the yacc file.This command is the default parser of GLOBAL source code tag system.@unnumberedsubsec OPTIONSThe following options are available:@table @asis@item @samp{-b}, @samp{--begin-block}Force level 1 block to begin when reach a left brace at the first column.(C only)@item @samp{-d}, @samp{--define}Pick up not only function but also macro without argumentas a definition.@item @samp{-e}, @samp{--end-block}Force level 1 block to end when reach a right brace at the first column.(C only)@item @samp{-n}, @samp{--no-tags}Suppress output of tags. It is useful to use with @samp{-w} option.@item @samp{-r}, @samp{--reference}Locate function references instead of function definitions.@file{GTAGS} is needed at the current directory.(C, C++ and Java source only)By default, locate function definitions.@item @samp{-s}, @samp{--symbol}Collect symbols other than functions.By default, locate function definitions.@item @samp{-t}, @samp{--typedef}Pick up not only function but also typedef name and enum memberas a definition.@item @samp{-v}, @samp{--verbose}Verbose mode.@item @samp{-w}, @samp{--warning}Print warning message.@item @samp{--langmap}=mapLanguage 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'.@end tableThe @samp{-r} and @samp{-s} options override each other;the last one specified determines the method used.@unnumberedsubsec DIAGNOSTICSGtags-parser exits with a non 0 value if an error occurred, 0 otherwise.Duplicate objects are not considered errors.@unnumberedsubsec SEE ALSOglobal(1),gtags(1),htags(1).GNU GLOBAL source code tag system@*(http://www.gnu.org/software/global/).@unnumberedsubsec BUGGtags-parser relies on the input being well formed,and any syntactical errors will completely confuse it.Assembler support is far from complete.Probably valid only for FreeBSD and Linux kernel source.@unnumberedsubsec AUTHORTama Communications Corporation.@unnumberedsubsec HISTORYThe gtags-parser(gctags) command appeared in FreeBSD 2.2.2.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -