[Ctags] macro and -I definition
Brought to you by:
dhiebert
|
From: Benoit C. <ben...@ho...> - 2001-12-10 08:03:51
|
Hi,
I'm not too clear about the way the -I option work, especially when putting
a pair of token, what is the level of replacement done?
Specifically I guess that the replacement is very basic ( -Ifoo=bar )
but I hope it can be made somewhat more sophisticated:
-Ifoo(toto)=bar_##toto
In short what I'd hope would be to be able to use the -I options to gain
some
of the preprocessor facilities. Right now it is great but at work for
different
reasons (mostly due to bad templating support on some platforms) we use c++
but
with macros to do what would normally be done through templates. Therefore
we have
macros like:
DECLARE_VECTOR(foo)
VECTOR(foo)
IMPLEMENT_VECTOR(foo)
each of those expand to the appropriate declaration implementation and type.
What I'd like is to be able to replace for tag purposes the VECTOR(foo) by
VECTOR_foo
and the DECLARE_VECTOR(foo) by class VECTOR_foo {};
I hope this is not too unreasonable, although I understand how frustrating
parsing
c or c++ can be due to preprocessor macros.
Benoit
PS:
thanks for a great product.
|