Skip to content
An autocompletion daemon for the C programming language (vim, libclang, omnifunc)
C Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
vim
LICENSE
README.md
client.c
main.c
misc.c
proto.c
server.c
shared.h
strstr.c
strstr.h
tpl.c
tpl.h
update.bash

README.md

CCode - An autocompletion daemon for the C programming language.

  1. Linux only, don't ask me to port it somewhere. If you need that - do it. But kinda works on Mac too.
  2. Relies on the C99 compliance (flexible array members, snprintf behaviour, etc).
  3. Mostly done, but has few quirks.
  4. Can be used to complete C++/ObjC, but I'm not targeting these languages. Don't report C++/ObjC specific bugs.
  5. Currently only per directory CFLAGS configuration (just dump your CFLAGS to .ccode file). CCode supports shell expansion, e.g. echo "\$(pkg-config --cflags sdl)" > .ccode will execute pkg-config with each autocompletion request.
  6. Should work on both 32 and 64 bit machines.

CCode in vim

CCode in vim 2

Something that should look like a usage guide

  1. Build everything (see update.bash).
  2. Place it somewhere on your $PATH.
  3. Copy vim plugin to your .vim/plugin dir.
  4. Daemon starts automatically, everything should work out of the box.
  5. Use for autocompletion.

FAQ

Q: My linux distribution contains broken LLVM/clang build and clang doesn't see its include directory (/usr/lib/clang/2.8/include). What should I do?

A: In your project dir: echo " -I/usr/lib/clang/2.8/include" >> .ccode.

Something went wrong with that request. Please try again.