I tried to create taglist for glib , so i tried the following:
%> cd ~/.vim/tags/
%> ctags -o glib -R --sort=yes /usr/include/glib-2.0/
%> grep g_hash glib
g_hash_table_freeze /usr/include/glib-2.0/glib/ghash.h 125;" d
g_hash_table_thaw /usr/include/glib-2.0/glib/ghash.h 134;" d
Well , things like g_hash_table_new() wasn’t included here , did i miss something important here ?
Thanks !
For me this works:
(Exuberant Ctags 5.7, Win 32)
The important option here is
+p. This adds function prototypes to the tags file.This is necessary since you scan only
.h-files and not the.c/.cpp-files. Thusctags “sees” only the prototypes.
g_hash_table_freezeandg_hash_table_thaware tagged without the+poption because they are just defines, not function prototypes.