summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2022-04-27 15:59:27 -0700
committerChih-Hung Hsieh <chh@google.com>2022-04-27 15:59:27 -0700
commit431a27eb0e168a6fb636eba182b3543ad8269742 (patch)
treeb8681a6dec36df19df4677f1cb4b7a7b467fa830 /Android.bp
parent3de29e0a8692d4bc8008c4ec5d817c9112086c65 (diff)
downloadnetd-431a27eb0e168a6fb636eba182b3543ad8269742.tar.gz
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-netd Change-Id: I37cace79dbbfddc8156dd7140f71a02e4ed5fb5e
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Android.bp b/Android.bp
index 88379109..8fe83f0a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -74,14 +74,13 @@ cc_defaults {
"-performance-noexcept-move-constructor",
"-performance-unnecessary-value-param",
],
- tidy_flags: [
- "-warnings-as-errors="
- + "android-*,"
- + "bugprone-*,"
- + "cert-*,"
- + "clang-analyzer-security*,"
- + "google-*,"
- + "misc-*,"
- + "performance-*"
+ tidy_checks_as_errors: [
+ "android-*",
+ "bugprone-*",
+ "cert-*",
+ "clang-analyzer-security*",
+ "google-*",
+ "misc-*",
+ "performance-*",
],
}