CCode - An autocompletion daemon for the C programming language.
- Linux only, don't ask me to port it somewhere. If you need that - do it. But kinda works on Mac too.
- Relies on the C99 compliance (flexible array members, snprintf behaviour, etc).
- Mostly done, but has few quirks.
- Can be used to complete C++/ObjC, but I'm not targeting these languages. Don't report C++/ObjC specific bugs.
- Currently only per directory CFLAGS configuration (just dump your CFLAGS to .ccode file). CCode supports shell expansion, e.g.
echo "\$(pkg-config --cflags sdl)" > .ccodewill execute pkg-config with each autocompletion request.
- Should work on both 32 and 64 bit machines.
Something that should look like a usage guide
- Build everything (see update.bash).
- Place it somewhere on your $PATH.
- Copy vim plugin to your .vim/plugin dir.
- Daemon starts automatically, everything should work out of the box.
- Use for autocompletion.
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.