[tarantool-patches] [PATCH v2] build: tags -- Exclude unneeded directories

Vladimir Davydov vdavydov.dev at gmail.com
Mon Mar 4 13:15:36 MSK 2019


On Mon, Mar 04, 2019 at 01:09:43PM +0300, Cyrill Gorcunov wrote:
> On Mon, Mar 04, 2019 at 12:57:34PM +0300, Vladimir Davydov wrote:
> > > -add_custom_target(tags COMMAND ${CTAGS} -R -f tags
> > > +list(APPEND tagsExclude "--exclude=.git/*")
> > 
> > Great!
> > 
> > > +list(APPEND tagsExclude "--exclude=.pc/*")
> > 
> > What's in '.pc'?
> 
> quilt uses it to stack data.

AFAIK ctags will simply ignore those. It doesn't tag anything in .git
either. Come to think of it, do we really need to explicitly exclude
those dirs?

> Guys, maybe we should simply tag src/ directory only? Or there someone
> who is using tags for tests, third party and etc?

Tagging third_party is useful. We even patch those sometimes.
I'm not sure why it's not in src/ though.

Tagging tests is mostly useless, you're correct, but it doesn't hurt
much.

There's also a bunch of autogenerated files (e.g. *.lua.c and module.h).
I wonder if it makes sense to tag those. I guess it does.



More information about the Tarantool-patches mailing list