Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition? #161

Closed
proofit404 opened this issue Jan 13, 2015 · 11 comments
Closed

Go to definition? #161

proofit404 opened this issue Jan 13, 2015 · 11 comments

Comments

@proofit404
Copy link

Is it possible to implement go to definition with libclang?

@Sarcasm
Copy link
Owner

Sarcasm commented Jan 13, 2015

Not really in a perfect way, see #152 and #153. Right now I'm opposed to "half-baked" solutions. Some kind of indexing is necessary to support cross-translation-unit jump to reference/definition/...

@proofit404
Copy link
Author

So maybe its a task for something like gnu globals?

@Sarcasm
Copy link
Owner

Sarcasm commented Jan 13, 2015

GNU Globals is not good for C++. A libclang based indexer would be better, for example https://github.com/Andersbakken/rtags or one of the cited tools here: #85 (comment)

Right now my hopes are for the Google project Kythe (see http://llvm.org/devmtg/2014-10/#talk21) but I have no idea when or what it does. I'd like to think they will provide more information in the next few months, I may be wrong.

@proofit404
Copy link
Author

Actually I doesn't write any C++ code. I use irony for C programming only. Thanks for your answers!

@Sarcasm
Copy link
Owner

Sarcasm commented Jan 13, 2015

Great, so I think you will be fine with GNU Globals, I liked when I was working in C and the Emacs interface is not too bad.

@Sarcasm Sarcasm closed this as completed Jan 13, 2015
@joca-bt
Copy link

joca-bt commented Feb 2, 2015

Kythe has arrived http://www.kythe.io/

@Sarcasm
Copy link
Owner

Sarcasm commented Feb 2, 2015

Yup, there is a long way to go though for now it seems. I'm reading slowly the documentation.

@vellamike
Copy link

Has there been any progress on this issue?

@Sarcasm
Copy link
Owner

Sarcasm commented Aug 17, 2015

None.

@vellamike
Copy link

Is there any way to get the ability to go to a function declaration/definition with C++ at the moment, perhaps using a different package? Or is it not really possible?

@Sarcasm
Copy link
Owner

Sarcasm commented Aug 17, 2015

Using rtags maybe? https://github.com/Andersbakken/rtags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants