binder: enable tidy
Turn on clang_tidy for libbinder. All warnings are reported as errors,
but current warnings are exempted.
Bug: 162909698
Test: m libbinder
Change-Id: Ic608066ff79566b35a7ea8f74a5d407263916a9a
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index e6071a0..d7bfc64 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -171,6 +171,20 @@
misc_undefined: ["integer"],
},
min_sdk_version: "29",
+
+ tidy: true,
+ tidy_flags: [
+ // Only check our headers
+ "--header-filter=^.*frameworks/native/libs/binder/.*.h$",
+ ],
+ tidy_checks_as_errors: [
+ "*",
+ "-google-build-using-namespace",
+ "-google-default-arguments",
+ "-google-explicit-constructor",
+ "-google-runtime-int",
+ "-performance-unnecessary-value-param",
+ ],
}
// AIDL interface between libbinder and framework.jar