![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Generate tags files (POSIX)
ctags options files...
All supported hosts.
The ctags utility generates a file called tags from a group of C source files.
Each C source file is scanned for #define statements and 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:
If you don't specify any options, ctags uses -l -i -s -t -v.
The elvis, less, more, and vi utilities can use entries in the tags file to locate and display a definition.
Generate tags for all the C source and header files in the current directory:
ctags *.[ch]
Steve Kirkendall; ctags is part of the elvis suite.
![]() |
![]() |
![]() |
![]() |