BSD 2 development
[unix-history] / man / ctags.u
CommitLineData
1aa6c056
BJ
1.TH CTAGS UCB 2/24/79 UCB
2.SH NAME
3ctags \- compute a tags file for a C program
4.SH SYNOPSIS
5.B ctags
6name ...
7.SH DESCRIPTION
8.I Ctags
9makes a tags file for
10.IR ex (UCB)
11from the specified C programs.
12A tags file gives the locations of specified objects (in this case
13functions) in a group of files.
14Each line of the tags file contains the function name,
15the file in which it is defined, and a scanning pattern used to find
16the function definition. These are given in separate fields on the line,
17separated by blanks or tabs.
18.SH FILES
19.DT
20tags output tags file
21.SH SEE ALSO
22astags(UCB), ex(UCB), vi(UCB)
23.SH BUGS
24This tags program is a primitive shell script, and requires functions
25to be recognizable by their starting in the first column of
26input lines on lines ending with a `)'.
27.PP
28No way to use it to incrementally update a tags file.
29In a
30.I makefile,
31we could move the
32.I tags
33file away and then use
34.I sort
35and
36.I uniq
37to get around this.
38.PP
39For tags to be more useful, a good
40.I ctags
41program is needed which references external and macro definitions in
42header files as well as being less sensitive to formatting.