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
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index ee0259d..08b984e 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -182,6 +182,14 @@
],
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",
],
}