Skip to content

Instantly share code, notes, and snippets.

View dennycd's full-sized avatar

Denny C. Dai dennycd

View GitHub Profile
#include <clang-c/Index.h>
#include <cstdlib>
#include <iostream>
/*
* Compile with:
* g++ complete.cc -o complete -lclang -L/usr/lib/llvm
* Run with:
* LIBCLANG_TIMING=1 ./complete file.cc line column [clang args...]
*/