All Projects → nsf → Ccode

nsf / Ccode

Licence: mit
An autocompletion daemon for the C programming language (vim, libclang, omnifunc)

Programming Languages

c
50402 projects - #5 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].