pgsql: Enhance make_ctags and make_etags. - Mailing list pgsql-committers

From Tatsuo Ishii
Subject pgsql: Enhance make_ctags and make_etags.
Date
Msg-id E1ol0b0-0030wJ-6I@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d1e2a380cb911f6f0840a8eb54dbf6e39e9c3f98

Modified Files
--------------
src/tools/make_ctags | 54 +++++++++++++++++++++++++++++++++++++++++++---------
src/tools/make_etags | 16 +++-------------
2 files changed, 48 insertions(+), 22 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix typos in logical/launcher.c
Next
From: Michael Paquier
Date:
Subject: pgsql: Rework shutdown callback of archiver modules