This is a temporary repo ported from ncm-clang.
I'm going to write a new c/c++ completion plugin based on libclang instead of the clang executable. But before that happen, I still need a decent C/C++ completion plugin.
Plug 'ncm2/ncm2-clang'
If you're using cmake, add set(CMAKE_EXPORT_COMPILE_COMMANDS, 1)
into
CMakeLists.txt
so that compile_commands.json
will be generated.
A list of paths for locating compile_commands.json
. Default is
['compile_commands.json', 'build/compile_commands.json']
The command to invode clang
executable. Defaults to ['clang']
.
Get compilation flags and directory for current file.
The following vimrc shows how to use Rip-Rip/clang_complete's goto declaration feature.