Advertisement
Guest User

Untitled

a guest
Mar 10th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 KB | None | 0 0
  1. Usage: ctags [options] [[regex-option ...] file-name] ...
  2.  
  3. These are the options accepted by ctags.
  4. You may use unambiguous abbreviations for the long option names.
  5. A - as file name means read names from stdin (one per line).
  6. Absolute names are stored in the output file as they are.
  7. Relative ones are stored relative to the output file's directory.
  8.  
  9. -a, --append
  10. Append tag entries to existing tags file.
  11. --packages-only
  12. For Ada files, only generate tags for packages.
  13. -B, --backward-search
  14. Write the search commands for the tag entries using '?', the
  15. backward-search command instead of '/', the forward-search command.
  16. --declarations
  17. In C and derived languages, create tags for function declarations,
  18. and create tags for extern variables if --globals is used.
  19. -d, --defines
  20. Create tag entries for C #define constants and enum constants, too.
  21. -l LANG, --language=LANG
  22. Force the following files to be considered as written in the
  23. named language up to the next --language=LANG option.
  24. --globals
  25. Create tag entries for global variables in some languages.
  26. --members
  27. Create tag entries for members of structures in some languages.
  28. -r REGEXP, --regex=REGEXP or --regex=@regexfile
  29. Make a tag for each line matching a regular expression pattern
  30. in the following files. {LANGUAGE}REGEXP uses REGEXP for LANGUAGE
  31. files only. REGEXFILE is a file containing one REGEXP per line.
  32. REGEXP takes the form /TAGREGEXP/TAGNAME/MODS, where TAGNAME/ is
  33. optional. The TAGREGEXP pattern is anchored (as if preceded by ^).
  34. If TAGNAME/ is present, the tags created are named.
  35. For example Tcl named tags can be created with:
  36. --regex="/proc[ \t]+\([^ \t]+\)/\1/.".
  37. MODS are optional one-letter modifiers: `i' means to ignore case,
  38. `m' means to allow multi-line matches, `s' implies `m' and
  39. causes dot to match any character, including newline.
  40. -R, --no-regex
  41. Don't create tags from regexps for the following files.
  42. -I, --ignore-indentation
  43. In C and C++ do not assume that a closing brace in the first
  44. column is the final brace of a function or structure definition.
  45. -o FILE, --output=FILE
  46. Write the tags to FILE.
  47. --parse-stdin=NAME
  48. Read from standard input and record tags as belonging to file NAME.
  49. -t, --typedefs
  50. Generate tag entries for C and Ada typedefs.
  51. -T, --typedefs-and-c++
  52. Generate tag entries for C typedefs, C struct/enum/union tags,
  53. and C++ member functions.
  54. -u, --update
  55. Update the tag entries for the given files, leaving tag
  56. entries for other files in place. Currently, this is
  57. implemented by deleting the existing entries for the given
  58. files and then rewriting the new entries at the end of the
  59. tags file. It is often faster to simply rebuild the entire
  60. tag file than to use this.
  61. -v, --vgrind
  62. Print on the standard output an index of items intended for
  63. human consumption, similar to the output of vgrind. The index
  64. is sorted, and gives the page number of each item.
  65. -x, --cxref
  66. Like --vgrind, but in the style of cxref, rather than vgrind.
  67. The output uses line numbers instead of page numbers, but
  68. beyond that the differences are cosmetic; try both to see
  69. which you like.
  70. -V, --version
  71. Print the version of the program.
  72. -h, --help
  73. Print this help message.
  74. Followed by one or more `--language' options prints detailed
  75. help about tag generation for the specified languages.
  76.  
  77. These are the currently supported languages, along with the
  78. default file names and dot suffixes:
  79. ada .ads .adb .ada
  80. asm .a .asm .def .inc .ins .s .sa .S .src
  81. c .c .h
  82. c++ .C .c++ .cc .cpp .cxx .H .h++ .hh .hpp .hxx .M .pdb
  83. c* .cs .hs
  84. cobol .COB .cob
  85. erlang .erl .hrl
  86. forth .fth .tok
  87. fortran .F .f .f90 .for
  88. html .htm .html .shtml
  89. java .java
  90. lisp .cl .clisp .el .l .lisp .LSP .lsp .ml
  91. lua .lua .LUA
  92. makefile Makefile makefile GNUMakefile Makefile.in Makefile.am
  93. objc .lm .m
  94. pascal .p .pas
  95. perl .pl .pm
  96. php .php .php3 .php4
  97. postscript .ps .psw
  98. proc .pc
  99. prolog .prolog
  100. python .py
  101. scheme .oak .sch .scheme .SCM .scm .SM .sm .ss .t
  102. tex .bib .clo .cls .ltx .sty .TeX .tex
  103. texinfo .texi .texinfo .txi
  104. yacc .y .y++ .ym .yxx .yy
  105. auto
  106. none
  107. where `auto' means use default language for files based on file
  108. name suffix, and `none' means only do regexp processing on files.
  109. If no language is specified and no matching suffix is found,
  110. the first line of the file is read for a sharp-bang (#!) sequence
  111. followed by the name of an interpreter. If no such sequence is found,
  112. Fortran is tried first; if no tags are found, C is tried next.
  113. When parsing any C file, a "class" or "template" keyword
  114. switches to C++.
  115. Compressed files are supported using gzip and bzip2.
  116.  
  117. For detailed help on a given language use, for example,
  118. etags --help --lang=ada.
  119.  
  120. Report bugs to bug-gnu-emacs@gnu.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement