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:
parent
df7ac92d33
commit
1ab55a5060
1 changed files with 3 additions and 2 deletions
|
@ -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-*",
|
||||
],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue