Re: [Ctags] macro and -I definition
Brought to you by:
dhiebert
From: Benoit C. <ben...@ho...> - 2001-12-11 09:28:53
|
> > I would suggest using regular expressions to generate the tags for this: > > '--regex-c++=/\bDECLARE_VECTOR\(([A-Za-z0-9_]+)\)/VECTOR_\1/c,class/' > > There is not need to do anything with VECTOR(foo), because this is > just a reference to VECTOR_foo, not a definition of it. > > You can do something similar with IMPLEMENT_VECTOR(foo). > This is great, just what I was looking for. I also found it in the manual once you refered to it. I had read the manual too quickly before and the help on -I made me think that all macros should be handled this way. Maybe an additional sentence stating that more complex case should probably be handled through the --regex-<LANG> option would be apropriate. Once again thanks for a great tool. Benoit |