interceptor: Support for emitting compile_commands.json

The analysis command learned how to emit compile_command.json databases
based on the recorded command log. A sample execution is:

  $ interceptor_analysis -l /tmp/log -o compile_command.json -t compdb

Bug: 205731786
Bug: 201801372
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I00d08d309f51b9263900cab517baa824c3be45c2
3 files changed
tree: fab924d86a966bedf99b59fa2bf0ea90ad0eceb0
  1. analysis.cc
  2. Android.bp
  3. CMakeLists.txt
  4. interceptor.cc
  5. interceptor.h
  6. log.proto
  7. main.cc
  8. OWNERS