Tuesday, January 29, 2013

ctags processing jumps to wrong tag?

I generate CTags for C code with the following:

" -R : recursive
" --extra=+f : include file name as a tag
" --fields=+S : include signature (e.g. parameter list)
" K : include kind of tag as full name
" -k : not kind of tag as single letter
" --totals : print on standard output total number of tags, etc.
" --c-kinds=+p : include function prototype in C code
let ctags_command=Tlist_Ctags_Cmd.' -R --extra=+f --fields=+SK-k --totals --c-kinds=+p .'

I have 'cscopetag' set, so that pressing CTRL-] on a tag name with multiple matches will prompt me before jumping.

When I CTRL-] on a function name, I usually get 2 hits, one for the prototype, the other for the function. If both are in the same file, choosing either hit will jump to the prototype always.

Does anyone else see this issue? Am I doing something wrong?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: