enable bugprone warnings as errors
Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iaf41109cd1a0cc4a6b4f09d77579c568627e8c6e
Merged-In: Iaf41109cd1a0cc4a6b4f09d77579c568627e8c6e
diff --git a/Android.bp b/Android.bp
index d4afc1e..ee12e11 100644
--- a/Android.bp
+++ b/Android.bp
@@ -26,11 +26,13 @@
cpp_std: "experimental",
tidy_checks: [
"android-*",
+ "bugprone-*",
"cert-*",
"clang-analyzer-security*",
"google-*",
"misc-*",
"performance-*",
+ "-bugprone-narrowing-conversions", // lots of unsigned -> int conversions
"-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
"-google-readability-*", // Too pedantic
"-google-runtime-int", // Too many unavoidable warnings due to strtol()
@@ -40,10 +42,11 @@
tidy_flags: [
"-warnings-as-errors="
+ "'android-*'"
- + ",'clang-analyzer-security*'"
+ + ",bugprone-*"
+ ",'cert-*'"
+ + ",'clang-analyzer-security*'"
+ ",'google-*'"
- + ",'performance-*'"
+ ",'misc-*'"
+ + ",'performance-*'"
],
}