Skip to content
/ ccode Public

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

License

Notifications You must be signed in to change notification settings

nsf/ccode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages