fix to reeves fix of dgo handling (reset b_active to 1)
[unix-history] / .ref-BSD-3 / usr / man / man1 / ctags.1
CommitLineData
8bf57e52
BJ
1.TH CTAGS 1 8/9/79
2.UC
3.SH NAME
4ctags \- maintain a tags file for a C program
5.SH SYNOPSIS
6.B ctags
7[
8.B \-auw
9]
10name ...
11.SH DESCRIPTION
12.I Ctags
13makes a tags file for
14.IR ex (1)
15from the specified C programs.
16A tags file gives the locations of specified objects (in this case
17functions) in a group of files.
18Each line of the tags file contains the function name,
19the file in which it is defined, and a scanning pattern used to find
20the function definition. These are given in separate fields on the line,
21separated by blanks or tabs.
22.PP
23The
24.B \-a
25option causes the output to be appended to the tags file
26instead of rewriting it.
27.PP
28The
29.B \-u
30option causes the specified files to be
31.I updated
32in tags, that is, all references to them are deleted,
33and the new values are appended to the file.
34This option implies the
35.B \-a
36option.
37.PP
38The
39.B \-w
40option suppresses warning diagnostics.
41.PP
42The tag
43.I main
44is treated specially.
45The tag formed is created by prepending
46.I M
47to the name of the file, with a trailing .c removed, if
48any, and leading pathname components also removed.
49This makes use of ctags practical in directories with
50more than one program.
51.SH FILES
52.DT
53tags output tags file
54.SH SEE ALSO
55ex(1), vi(1)
56.SH BUGS
57In a directory with only one
58.I main,
59the tag
60.I main
61will still not be created.