Re-apply my diagnostics-capture patch for CIndex, with some tweaks to
try to address the msvc failures.

llvm-svn: 96624
10 files changed
tree: 1f79848629ae51c3bad1dd1433bb183ed843f5b5
  1. clang/
  2. compiler-rt/
  3. llvm/