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 21:38
Programmist Setevik is currently offline Programmist SetevikFriend
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

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 just fine - so CDT knows these are related.

But, you can not go to definition (of X::f() in 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 21: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: Fri Apr 20 09:11:03 GMT 2018

Powered by FUDForum. Page generated in 0.03128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software