How to compile the sources using Clang API?

Hey!

I’m using Clang in my IDE on mobile devices as built-in analyzer and for syntax highlighting. Can i (and how?) to compile the sources with Clang C++ API without executables running?

I’ve found blog post about it (http://fdiv.net/2012/08/15/compiling-code-clang-api), but it seems that Driver class runs clang and ld executables behind the scene.

Anybody?

Thanks and regards,
Anton.