Suppress non-critical warnings in pcre.
* We should enable those warnings after fixing the upstream source code.
Bug: 64487164
Test: build with WITH_TIDY=1
Change-Id: Id06c940325e9ee24fb65a4fae25adc2bd1d15043
diff --git a/Android.bp b/Android.bp
index d57b4c2..c3bffad 100644
--- a/Android.bp
+++ b/Android.bp
@@ -32,6 +32,10 @@
cc_defaults {
name: "pcre_defaults",
cflags: ["-DHAVE_CONFIG_H"],
+ tidy_checks: [
+ "-google-build-using-namespace",
+ "-google-global-names-in-headers",
+ ],
local_include_dirs: [
"include_internal",
"include",
@@ -59,6 +63,10 @@
cc_library_shared {
name: "libpcrecpp",
cflags: ["-Wno-unused-parameter"],
+ tidy_checks: [
+ "-google-build-using-namespace",
+ "-google-global-names-in-headers",
+ ],
local_include_dirs: ["pcrecpp/include"],
shared_libs: ["libpcre2"],
export_include_dirs: [