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

request to improve: auto find clang library and clang database #9

Open
butterflyfish opened this issue Mar 1, 2016 · 5 comments
Open
Assignees

Comments

@butterflyfish
Copy link

Currently, it have to set lib clang and header path. how about trying to find automatically and then use fallback setting ?

Try to find compiler database also and then use fallback setting. It does not need to tell where is compiler database when using YCM.

@butterflyfish butterflyfish changed the title request to imporve: auto find clang library and clang database request to improve: auto find clang library and clang database Mar 1, 2016
@zchee
Copy link
Member

zchee commented Mar 3, 2016

@butterflyfish thanks issue
I reply later

@zchee
Copy link
Member

zchee commented Mar 9, 2016

@butterflyfish Sorry for late reply :(

Currently, it have to set lib clang and header path. how about trying to find automatically and then use fallback setting ?

Yes, users will need to set it explicitly.
YCM and clang_complete seem to automatically parse clang headers.
but maybe YCM is parse C++ side(?), and clang_complete seems to decrease a little performance.

However, It is a good idea to fall back to if not set clang header path.
I'll implement later.

Try to find compiler database also and then use fallback setting. It does not need to tell where is compiler database when using YCM.

This meaning of compile_commands.json support?
If true, it has already been implemented.

let g:deoplete#sources#clang#clang_complete_database = '/path/to/neovim/build'

but this behavior is too slow.. I am considering a faster methods.
But I do not want to use the C++ (I do not write C, C++ 😱 ).
Pure Python? or use Numpy? or use the shared library written Go? or etc...

Also, planned #11.

Sorry for If my understanding is mistaken :(

@butterflyfish
Copy link
Author

thx. that's what I want. Only hope to simplify configuration.

@zchee
Copy link
Member

zchee commented Mar 12, 2016

@butterflyfish Thanks.
I considering it.

@Shougo
Copy link
Collaborator

Shougo commented Jun 27, 2016

I will implement this feature(auto find clang library and header).

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

No branches or pull requests

3 participants