Looks interesting, but how are we going to guess the correct CLANG_RESOURCE_DIR / CLANG_VERSION_STRING, which is used in a path to built-in headers? Relying on it being the same in the compiler and the tool won't always work. http://llvm-reviews.chandlerc.com/D265