compiler_wrapper: dump tricium clang-tidy crash information

This CL has us dump extra info when we observe a crash while using
`WITH_TIDY=tricium`. In particular:
- We'll now try to generate a -E'ed source file, and stash that in a
  subdirectory of our general crash_diagnostics directory.
- Our JSON object that represents clang-tidy output has metadata about
  the aforementioned crash file, if it was generated.

BUG=chromium:1113442
TEST=`go test`; ran locally with a crashy clang-tidy

Change-Id: I577e5ec8e990af3b7cf1d8a9fea347582d5b227b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2343974
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
5 files changed