Thread: [Ctags] C++ tricky question
Brought to you by:
dhiebert
From: Neil B. <ne...@fn...> - 2003-06-18 08:20:23
|
I have a number of locations in C++ source where, to prevent circular includes, classes a re pre-declared ("class Wotsit;"). However, if this pre-declaration appears in a file of a 'lesser' name (e.g., "Other.h"), then it appears in the tag file first (before the 'real' class definition in, say, "Wotsit.h"). Is there any work-around for this? Currently, for all these classes, I can't tag-jump to them (vim) as I end up at the pre-declaration. I don't mind a clever bit of sed/perl/awk post-processing if that's what it takes! -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit |
From: Darren H. <dhi...@us...> - 2003-06-19 03:36:55
|
Neil, > I have a number of locations in C++ source where, to prevent circular > includes, classes a re pre-declared ("class Wotsit;"). > > However, if this pre-declaration appears in a file of a 'lesser' name > (e.g., "Other.h"), then it appears in the tag file first (before the > 'real' class definition in, say, "Wotsit.h"). > > Is there any work-around for this? Currently, for all these classes, > I can't tag-jump to them (vim) as I end up at the pre-declaration. What version of ctags are you running ("ctags --version"). These do not generate tags with ctags-5.5. -- Darren Hiebert http://DarrenHiebert.com http://ctags.sourceforge.net |
From: Neil B. <ne...@fn...> - 2003-06-19 08:04:59
|
Around about 19/06/2003 04:35, Darren Hiebert typed ... > What version of ctags are you running ("ctags --version"). These do > not generate tags with ctags-5.5. Aargh! I have 5.5 installed, but the make-tags.bat I set up explicitly runs a global copy of ctags I put on the network - and that one's still 5.3. Thanks for that! -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit |