Skip to main content



      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
Eclipse UserFriend
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] by Moderator

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


Current Time: Tue May 13 23:09:02 EDT 2025

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

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

Back to the top