I am using ctags 5.8 on Windows to tag a set of .c and .h files. I have one c file that has a global variable and another file that externs that variable. The tag file only has an entry for the definition of the variable. How can I get ctags to also tag the extern variable and all uses of that variable throughout the code. Similar to cscope: "Find symbol" (not simply find definition).
I added all the ctag options I could think of. I am curretnly using: ctags -R --fields=+afikKlmnsSzt --extra=+fq --c-types=+lp
Thanks.
p.s. on a related note, how can I get ctags to tag all variables, even local variables within a function.