Do not add quotes around flags argument
* build/soong will adds quotes around the whole flags
and preserve the quotes around flags argument.
The quotes incorrectly became part of a flag's value.
* now -warnings-as-errors= works and finds some warnings;
allow those warnings until they are fixed in source files.
Bug: 180862582
Test: make; make with WITH_TIDY=1
Change-Id: Ida4d8b54bf4546d241333e4a0e6ab1002e346e6f
diff --git a/pwrstats_util/Android.bp b/pwrstats_util/Android.bp
index ee9f824..c3ffc07 100644
--- a/pwrstats_util/Android.bp
+++ b/pwrstats_util/Android.bp
@@ -59,12 +59,15 @@
],
tidy_flags: [
"-warnings-as-errors="
- + "'android-*'"
- + ",'clang-analyzer-security*'"
- + ",'cert-*'"
- + ",'google-*'"
- + ",'performance-*'"
- + ",'misc-*'"
+ + "android-*"
+ + ",clang-analyzer-security*"
+ + ",cert-*"
+ + ",google-*"
+ + ",performance-*"
+ + ",misc-*"
+ + ",-cert-oop54-cpp" // in powerstats_util.pb.h
+ + ",-bugprone-unhandled-self-assignment" // in powerstats_util.pb.h
+ + ",-google-global-names-in-headers" // in PowerStatsCollector.h
],
shared_libs: [
"libbase",