Revert "To use same default for the nightly builds."
This reverts commit b063dc4221cf0604a7f8d577e7a5808380ad7c86.
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=crosshatch-userdebug&lkgb=7080774&lkbb=7082597&fkbb=7080869, bug 177549474
Test: make
Change-Id: I8b6cf3b56fddde9832e1428a3d1aef00f19637fb
diff --git a/cc/config/tidy.go b/cc/config/tidy.go
index e5bea4b..4ac9e58 100644
--- a/cc/config/tidy.go
+++ b/cc/config/tidy.go
@@ -21,28 +21,23 @@
func init() {
// Most Android source files are not clang-tidy clean yet.
- // Default global tidy checks must exclude all checks that
- // have found too many false positives.
+ // Global tidy checks include only google*, performance*,
+ // and misc-macro-parentheses, but not google-readability*
+ // or google-runtime-references.
pctx.VariableFunc("TidyDefaultGlobalChecks", func(ctx android.PackageVarContext) string {
if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" {
return override
}
return strings.Join([]string{
- "*",
- "-altera-*",
+ "-*",
+ "bugprone*",
+ "clang-diagnostic-unused-command-line-argument",
+ "google*",
+ "misc-macro-parentheses",
+ "performance*",
"-bugprone-narrowing-conversions",
- "-cppcoreguidelines-*",
- "-fuchsia-*",
- "-google-readability-*",
+ "-google-readability*",
"-google-runtime-references",
- "-hicpp-*",
- "-llvm-*",
- "-llvmlibc-*",
- "-misc-no-recursion",
- "-misc-non-private-member-variables-in-classes",
- "-misc-unused-parameters",
- "-modernize-*",
- "-readability-*",
}, ",")
})