diff options
| author | 2020-12-16 10:14:10 +0900 | |
|---|---|---|
| committer | 2020-12-16 10:14:10 +0900 | |
| commit | 7ad197b965f64c5d5fa029facba8ed4d27ac88cf (patch) | |
| tree | a2c69a40be2f82bec36895f026a2bdc5dd67a6be | |
| parent | f5009aa2c3905a8fd620d4ad85801f9d52689bd6 (diff) | |
Exclude some tidy checks from errors for libbinder and libbinder_ndk
We have the special "*_analyzer" builds where more tidy checks are on.
The extra tidy checks are failing libbinder and libbinder_ndk, because
the checks were not done for the normal builds.
Exclude the checks that are failing the builds from the
tidy_checks_as_errors list.
Bug: 173736193
Test: WITH_TIDY=1
DEFAULT_GLOBAL_TIDY_CHECKS=*,-readability-*,-google-readability-*,-google-runtime-references,-cppcoreguidelines-*,-modernize-*,-llvm-*,-llvmlibc-*,-bugprone-narrowing-conversions,-misc-non-private-member-variables-in-classes,-misc-unused-parameters,-hicpp-*,-fuchsia-*
m libbinder libbinder_ndk
Change-Id: Ia75a4fdb96530165552a0c83943a812c49c8dc0a
| -rw-r--r-- | libs/binder/Android.bp | 8 | ||||
| -rw-r--r-- | libs/binder/ndk/Android.bp | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp index ee0259d5fd..08b984ea1b 100644 --- a/libs/binder/Android.bp +++ b/libs/binder/Android.bp @@ -182,6 +182,14 @@ cc_library { ], tidy_checks_as_errors: [ "*", + "-clang-analyzer-core.CallAndMessage", + "-clang-analyzer-core.uninitialized.Assign", + "-clang-analyzer-unix.Malloc,", + "-clang-analyzer-deadcode.DeadStores", + "-clang-analyzer-optin.cplusplus.UninitializedObject", + "-misc-no-recursion", + "-misc-redundant-expression", + "-misc-unused-using-decls", ], } diff --git a/libs/binder/ndk/Android.bp b/libs/binder/ndk/Android.bp index a57beeea85..bdb74dc989 100644 --- a/libs/binder/ndk/Android.bp +++ b/libs/binder/ndk/Android.bp @@ -105,6 +105,14 @@ cc_library { ], tidy_checks_as_errors: [ "*", + "-clang-analyzer-core.CallAndMessage", + "-clang-analyzer-core.uninitialized.Assign", + "-clang-analyzer-unix.Malloc,", + "-clang-analyzer-deadcode.DeadStores", + "-clang-analyzer-optin.cplusplus.UninitializedObject", + "-misc-no-recursion", + "-misc-redundant-expression", + "-misc-unused-using-decls", ], } |