Boost logo

Boost-Build :

Subject: Re: [Boost-build] generating tag files for sources
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-09-30 08:20:27


On Monday 28 September 2009 Pascal Z. wrote:

> Has there been any work done about automatically generating tag files
> for sources via ctags/cscope or similar tools ?
> This can be very useful for intellisense functionality e.g. as provided
> by vim's omnicompletion or emacs.
> I tried to set up a Jamfile so that using "bjam tags" will generate tags
> for all used source files, but I didn't manage it. I'm not that familiar
> with boost.Build. How could such a jam rule look?

Hi Pascal,

I would recommend this:

        make TAGS : : @make-tags : <location>. ;
        actions make-tags
        {
                ctags `find . -name *.c -or -name *.h`
        }

It was awhile since I've last used ctags, so the command
might be wrong.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk