Pretty self-explanatory. Took a bunch of code from a Clang code completion example ( https://gist.github.com/Rip-Rip/758615 ) and the "Custom Completer" example that comes with Qt. Tried to keep it short and sweet by skipping lots of unnecessary bits in the custom completer example.