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-system-vold
Change-Id: I801e73dce5f08fe1ca5bc49de633706ad2cdf986
This commit is contained in:
Chih-Hung Hsieh 2022-04-27 15:54:25 -07:00
parent df7ac92d33
commit 1ab55a5060

View file

@ -19,8 +19,9 @@ cc_defaults {
"clang-analyzer-security*",
"android-*",
],
tidy_flags: [
"-warnings-as-errors=clang-analyzer-security*,cert-*",
tidy_checks_as_errors: [
"clang-analyzer-security*",
"cert-*",
],
}