|Show reference work @ declation site, but not definition [message #1093278]
||Fri, 23 August 2013 21:38
| Programmist Setevik
Registered: January 2013
An annoyance. |
A small C++ project, Linux, gcc toolchain (4.8.1).
In C++ code, in grand and time-honored tradition, say you have a class X declared in X.h and some of the X's methods defined in X.cc.
When looking at declarations of methods in X.h, finding references (eg callers of X.f()) to assorted symbols/methods works fine. When looking at same in X.c, it shows 0 references. So you have to jump back to declarations in X.h and find references from there.
Both in latest Juno and latest nightly Kepler. No amt of playing with indexer's options seem to help. Pretty small code base, may be under 3,000 LOC.
What is interesting, you _can go to declarations (say X::f() in X.h) from definitions (X::f() in X.cc) just fine - so CDT knows these are related.
But, you can not go to definition (of X::f() in X.cc) from declaration (in X.h).
Having to do this 2-step dance is rather annoying.
Any known cures ?
Just when u think u tamed the beast, some other annoyance pops up
[Updated on: Fri, 23 August 2013 21:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02609 seconds