Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » About navigation/code assist/indexing
About navigation/code assist/indexing [message #208371] Mon, 21 January 2008 13:51
Eclipse UserFriend
Originally posted by: joaho.statoilhydro.com

[Disclaimer: I am working in a rather conservative organisation, and stuck
with eclipse-3.2 / cdt-3.1.]

Hello,

I have just startet eclipse for my C development; so far it has been a
somewhat mixed experience. Some things have worked very nicely, whereas I
have had a bit problems with others. In particular I have found the code
assist and navigitaton facilities a bit confusing.

I have three different libraries libA, libB and libC, and within eclipse
they are organised in three different projects, in the same workspace. My
workspace looks like this:

~/workspace/libA/src
~/workspace/libA/lib
~/workspace/libA/include
.....
[The same for libB and libC]

The src directory contains the *.c files *AND* the *.h files - the
exported (in my case nearly all) header files are copied to the
corresponding ../include directory as part of the build process. The three
libraries are in hierarchy, i.e. libB depends on libA, and libC depends on
both libA and libB.

Now these are my "problems":

1: When editing a source file I can position the cursor under a function
name, and use Ctrl+F3 to jump to the implementation of that function.
However, it seems I can not the current project, i.e. if editing a source
file in project and placing the cursor under here:

some_func_in_libA(arg1,arg2)

I can not get eclipse to jump to the implementation of
some_func_in_libA(..), I can get it to go to the header file containing
the prototype with F3 though, and from there I can use Ctrl+F3 to go to
the implementation - but that does not feel very good.

2: The code assist feature only works for features within the same
project. But I guess it is all part of the same problem.

3: I would love function which prompted me for a function name, and took
me there - anywhere in the workspace - is that available?

4: How can I add documentation to my own functions, so that I can get a
description when hovering over a function name?

I am using the "Full indexer" for all my projects, but it seems the
indexer does not really extend beyond the current project - maybe with the
exception the header files detetcted during build?! Is there a way I can
inspect the index - and see what is indexed.
Does the indexer work on a project basis or a workspace basis - I guess I
would like a workspace based index?


Very grateful for any answers.

Best Regards

Joakim Hove
Previous Topic:Remote debugging
Next Topic:Adding documentation
Goto Forum:
  


Current Time: Thu May 15 13:25:31 EDT 2025

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

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

Back to the top