compiler_wrapper: remove WITH_TIDY support for android.

Also consolidates most of the android specific logic
into one place so it's clear which flags are used
and which ones are not.

Also detects wrapping of clang-tidy for future
special casing.

BUG=chromium:773875
TEST=unit tests, golden tests
TEST=android's test_compiler.py --with-tidy

Change-Id: Ic83340ba63ec3ea4c3c174069d3dc017ecbcdd72
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1866603
Tested-by: Tobias Bosch <tbosch@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
7 files changed