Hi,
Though it cannot said an easy way, you can do it using the ctags plug-in parser.
You need to modify both Exuberant Ctags and the ctags plug-in parser like follows:
1. Exuberant Ctags (version 5.8): writeXrefEntry() in entry.c
[BEFORE]
length += writeCompactSourceLine (TagFile.fp, line);
[AFTER]
if (Option.extensionFields.signature && tag->extensionFields.signature != NULL)
length += fprintf (TagFile.fp, "signature:%s", tag->extensionFields.signature);
else
length += writeCompactSourceLine (TagFile.fp, line);
2. Ctags plug-in parser (GLOBAL_6.5.2): plugin-factory/exuberant-c
[BEFORE]
#if defined(USE_EXTRA_FIELDS)
"--_xformat=%R %-16N %4n %-16F %C",
"--extra=+r",
#else
"--format=1",
#endif
[AFTER]
#if defined(USE_EXTRA_FIELDS)
"--_xformat=%R %-16N %4n %-16F %C",
"--extra=+r",
"--fields=+rS",
#else
"--format=1",
"--fields=+S",
#endif
3. The result
$ global -x main
main 2 main.c signature:( int argc, char *argv[] )
Regards,
Shigio