Re: make_ctags: use -I option to ignore pg_node_attr macro

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: make_ctags: use -I option to ignore pg_node_attr macro
Date: 2022-10-12 17:27:29
Message-ID: 3ade5b3d-3a3a-f77d-944b-ab35c90f558d@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10.10.22 12:04, Alvaro Herrera wrote:
> In my own tags script I just call "ctags -R", and I feed cscope with
> these find lines
>
> (find $SRCDIR \( -name tmp_install -prune -o -name tmp_check -prune \) -o \( -name "*.[chly]" -o -iname "*makefile*" -o -name "*.mk" -o -name "*.in" -o -name "*.sh" -o -name "*.sgml" -o -name "*.sql" -o -name "*.p[lm]" \) -type f -print ; \
> find $BUILDDIR \( -name tmp_install -prune \) -o \( -name \*.h -a -type f \) -print )
>
> which seems to give decent results. (Nowadays I wonder if it'd be
> better to exclude the "*_d.h" files from the builddir.)
> (I wonder why don't I have a prune for .git ...)

Or use git ls-files.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2022-10-12 17:43:59 Re: Support for Rust
Previous Message Jacob Champion 2022-10-12 16:40:05 Re: [PoC] Let libpq reject unexpected authentication requests