clang_complete
clang_complete copied to clipboard
which version for python and clang
MY system is centos6.2 My vim version is 8.2(+python3/dyn +python/dyn) libclang.so is 3.4 python is 2.6.6 python3 is 3.4.5
bash-4.1$ cat .vimrc let g:clang_library_path='/usr/lib64/llvm/libclang.so' let g:clang_complete_copen=1 let g:clang_periodic_quickfix=1 let g:clang_snippets=1 let g:clang_close_preview=1 bash-4.1$ ll /usr/lib64/llvm/libclang.so -rwxr-xr-x 1 root root 14477112 Jan 3 2015 /usr/lib64/llvm/libclang.so
The error message "Option completefunc is not set"
Try with
let g:clang_library_path='/usr/lib64/llvm/'
This option specifies directory.
It still didn't work.
bash-4.1$ cat .vimrc let g:clang_library_path='/usr/lib64/llvm/' let g:clang_complete_copen=1 let g:clang_periodic_quickfix=1 let g:clang_snippets=1 let g:clang_close_preview=1
bash-4.1$ rpm -qf /usr/lib64/llvm/libclang.so clang-3.4.2-4.el6.x86_64
bash-4.1$ cat .clang_complete -I/usr/include/c++/4.4.4/
bash-4.1$ cat a.cc
#include
int main() {
std::vector
}
bash-4.1$ ll /usr/include/c++/4.4.4/vector -rw-r--r-- 1 root root 2698 Jun 19 2018 /usr/include/c++/4.4.4/vector
Right, looks like clang_library_path
can point to a directory as well. I forgot about it.