Skip to content

Shougo/deoplete-clangx

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 25, 2018 19:48
February 25, 2018 19:48
April 14, 2018 16:57

C/C++ Completion for deoplete using clang

Install

  • Install the latest deoplete.nvim
  • Make sure you already have clang(clang command)

Customization

" Change clang binary path
call deoplete#custom#var('clangx', 'clang_binary', '/usr/local/bin/clang')

" Change clang options
call deoplete#custom#var('clangx', 'default_c_options', '')
call deoplete#custom#var('clangx', 'default_cpp_options', '')

neoinclude

deoplete-clangx supports neoinclude plugin

https://github.com/Shougo/neoinclude.vim/

neoinclude adds include directory options(-I) automatically for clang.

".clang" or ".clang_complete" file

You can configure compiler options using the file.

https://github.com/Rip-Rip/clang_complete#minimum-configuration

Todo

  • compile_commands.json file support