Code Browser plugin, function prototypes and function definitions
Submitted by Thursday, 13 October, 2005 - 15:21
on
Hi there,
When using the Code Browser plugin with C files I find the following annoying quirk. When a file contains both a function prototype and a function definition for the same function, clicking on the function name in Code Browser will sometimes bring you to the prototype instead of the definition. I noticed the determining factor seems to be whether the prototype spans across several lines or not. If it fits into a single line, Code Browser will bring you to the defintion, otherwise it will point you to the prototype.
Typically I am interested in the function definition (for the prototype I can use Code Browser's tool tip for example).
I had a look at the man page for ctags to see if one could force it not to generate tags for prototypes but I couldn't see a way to do it.
Has anybody come across this issue and has a solution for it ?
Thanks
When using the Code Browser plugin with C files I find the following annoying quirk. When a file contains both a function prototype and a function definition for the same function, clicking on the function name in Code Browser will sometimes bring you to the prototype instead of the definition. I noticed the determining factor seems to be whether the prototype spans across several lines or not. If it fits into a single line, Code Browser will bring you to the defintion, otherwise it will point you to the prototype.
Typically I am interested in the function definition (for the prototype I can use Code Browser's tool tip for example).
I had a look at the man page for ctags to see if one could force it not to generate tags for prototypes but I couldn't see a way to do it.
Has anybody come across this issue and has a solution for it ?
Thanks