Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Goto definition/ goto reference...



cdt-dev-admin@xxxxxxxxxxx wrote on 02/15/2005 05:43:57 AM:

> Hello !
>
> I have a general question regarding a general feature provided in
> most of the C/C++ IDEs: Goto definition/ show all references.
>
> I have several problems with this covered in CDT.
>
> - goto definition results often in "This operation is unavailable on the
> current selection".


Just to be perfectly clear; are you talking about the "Open Declaration F3" functionality which
appears on the context menu in the editor? If so, then it is supposed to find the declaration - not
the definition. (There is an enhancement request to put in an Open Definition as well:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=69063).


>   If it is found, it shows just the decleration in the header file not the
> real implementation
>   in the source file.
>   In adition, the speed of that function looks like a simple grep command,
> or is that connected to
>   an indexing result ?
>   Has to be the indexer always on ?
>


Open Declaration makes use of the parser directly. You need to have your project paths and
symbols set up so that the parser can find your included files.

> - goto reference provides always no results within my whole workspace.
>


Do you mean Search For>All References>Workspace? How are you triggering goto reference?

> Do I have a configuration problem, or is that feature not supported in the
> way most of the
> C/C++ IDEs do ?
>
> Any hints would be helpful.
>
> Regards,
> Claus
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top