deoplete-clang icon indicating copy to clipboard operation
deoplete-clang copied to clipboard

request to improve: auto find clang library and clang database

Open butterflyfish opened this issue 9 years ago • 5 comments

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 avatar Mar 01 '16 13:03 butterflyfish

@butterflyfish thanks issue I reply later

zchee avatar Mar 03 '16 08:03 zchee

@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++ :scream: ). Pure Python? or use Numpy? or use the shared library written Go? or etc...

Also, planned https://github.com/zchee/deoplete-clang/issues/11.

Sorry for If my understanding is mistaken :(

zchee avatar Mar 09 '16 17:03 zchee

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

butterflyfish avatar Mar 10 '16 00:03 butterflyfish

@butterflyfish Thanks. I considering it.

zchee avatar Mar 12 '16 06:03 zchee

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

Shougo avatar Jun 27 '16 10:06 Shougo