From 7ad197b965f64c5d5fa029facba8ed4d27ac88cf Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 16 Dec 2020 10:14:10 +0900 Subject: 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 --- libs/binder/Android.bp | 8 ++++++++ libs/binder/ndk/Android.bp | 8 ++++++++ 2 files changed, 16 insertions(+) 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", ], } -- cgit v1.2.3-59-g8ed1b