Enhance make_ctags and make_etags.

Tatsuo Ishii <ishii@postgresql.org>

Commit: d1e2a380cb911f6f0840a8eb54dbf6e39e9c3f98
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2022-10-19T03:59:29Z
Releases: 16.0
Enhance make_ctags and make_etags.

make_ctags did not include field members of structs since the commit
964d01ae90c314eb31132c2e7712d5d9fc237331.

For example, in the following field of RestrictInfo:

   Selectivity norm_selec pg_node_attr(equal_ignore);

pg_node_attr was mistakenly interpreted to be the name of the field.
To fix this, add -I option to ctags command if the command is
Exuberant ctags or Universal ctags (for plain old ctags, struct
members are not included in the tags file anyway).

Also add "-e" and "-n" options to make_ctags. The -e option invokes
ctags command with -e option, which produces TAGS file for emacs. This
allows to eliminate duplicate codes in make_etags so that make_etags
just exec make_ctags with -e option.

The -n option allows not to produce symbolic links in each
sub directory (the default is producing symbolic links).

Author: Yugo Nagata
Reviewers: Alvaro Herrera, Tatsuo Ishii
Discussion: https://postgr.es/m/flat/20221007154442.76233afc7c5b255c4de6528a%40sraoss.co.jp

Files

PathChange+/−
src/tools/make_ctags modified +45 −9
src/tools/make_etags modified +3 −13

Discussion

Cited messages not in the archive: flat/20221007154442.76233afc7c5b255c4de6528a@sraoss.co.jp