Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Show reference work @ declation site, but not definition
Show reference work @ declation site, but not definition [message #1093278] Fri, 23 August 2013 17:38
Programmist Setevik is currently offline Programmist Setevik
Messages: 12
Registered: January 2013
Junior Member
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 Smile

[Updated on: Fri, 23 August 2013 17:43]

Report message to a moderator

Previous Topic:Eclipse CDT-showing error
Next Topic:C/C++ code formatting from command line
Goto Forum:
  


Current Time: Sat Aug 02 04:39:41 EDT 2014

Powered by FUDForum. Page generated in 0.02286 seconds