diff options
author | Chih-Hung Hsieh <chh@google.com> | 2022-04-27 15:59:27 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2022-04-27 15:59:27 -0700 |
commit | 431a27eb0e168a6fb636eba182b3543ad8269742 (patch) | |
tree | b8681a6dec36df19df4677f1cb4b7a7b467fa830 /Android.bp | |
parent | 3de29e0a8692d4bc8008c4ec5d817c9112086c65 (diff) | |
download | netd-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.bp | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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-*", ], } |