Use tidy_checks_as_errors not -warnings-as-errors

The flag -warnings-as-errors embedded in tidy_flags
is difficult to process and error-prone.
They should be replaced with the new tidy_checks_as_errors list.

Bug: 229801437
Test: make tidy-frameworks-native
Change-Id: I4f2dd4e8561831975904b69e51fd9e2b2dc5df6c
1 file changed