bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtags and ctags like --regex support


From: Shigio YAMAGUCHI
Subject: Re: gtags and ctags like --regex support
Date: Sun, 21 Jun 2009 10:14:17 +0900

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 (address@hidden) would be better
to post such a question. You can get answers easily there. :)
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]