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
(C/C++) GoToDefinition cannot jump to source file in different directory #722
Comments
From the YCM docs:
|
Not considering to add some project-scope code navigation feature? For example, add a funtion, say, GetSources(), in .ycm_extra_conf.py to get the list of source file names? Thanks! |
Maybe some time in the future, but not any time soon; it's difficult to implement well. |
Thanks for the reply. Maybe I will continue to use ctags and cscope to achieve that at the moment. |
Is it implemented? such feature is really playing a important role |
No, but once clangd gets this ability, it will be in YCM. |
For example, the project file tree is like this:
|- a
| |- a.c (where the definition of function a() is)
| \- a.h (where the declaration of function a() is)
|
|- b
| \- b.c (calls function a())
|
\- .ycm_extra_conf.py (directory 'a' is added into the flags)
If :GoToDefinition is called in b.c, an error about not being able to jump to definition is raised. If :GoToDefinitionElseDeclaration is called, Vim will jump to a.h but not a.c.
Thanks!
The text was updated successfully, but these errors were encountered: