Hi,
> Is there a way i can make gtags makes tags based on the regex matching
> in addition to the tags made with the standard parsing based on
> language ?
> What i wanted to achive is to  use something like
> --regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/'
> That would help me have tag data generated with name like
> sys_fallocate where in the code it will appear
> as SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)

This kind of option is available in Exuberant Ctags.
You can use Exuberant Ctag as a parser for GLOBAL.
(It cannot make GRTAGS and GSYMS files though.)
Please see the section 'Plug-in parser' in the info manual and
gtags.conf file.

However, it might be quicker to rewrite gtags-parser/C.c directly.
You can refer the code for recognizing Guile function entries (SCM_DEFINE).

By the way, the help mailing list ([email protected]) would be better
to post such a question. You can get answers easily there. :)
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to