I am working with some code which has the following style:
int
add5 (int x) {
return x+5;
}
In other words, the return value type of the function is written right above the function’s name. Because of that, ctags is not recognizing these functions and causing me a terrible headache. Does someone know how to get ctags to handle this case?
EDIT: ctags can recognize the function names on .c files but what I need is ctags to recognize the function names on .h files. On the .h files I have things such as:
int
add5 (int);
and there ctags does not recognize add5.
You have to tell
ctagsto search for prototypes of functions. It is done with--<LANG>-kindsoption.So, run following command:
And it will add the declaration to the
tagsfile, as you can see in the output of my test: