Revert "To use same default for the nightly builds." am: 46cad069d1

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1549528

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I547982fcdf9a7c1a5825f8735920041378cb7369
This commit is contained in:
Chris Li
2021-01-14 22:21:30 +00:00
committed by Automerger Merge Worker

View File

@@ -21,28 +21,23 @@ import (
func init() { func init() {
// Most Android source files are not clang-tidy clean yet. // Most Android source files are not clang-tidy clean yet.
// Default global tidy checks must exclude all checks that // Global tidy checks include only google*, performance*,
// have found too many false positives. // and misc-macro-parentheses, but not google-readability*
// or google-runtime-references.
pctx.VariableFunc("TidyDefaultGlobalChecks", func(ctx android.PackageVarContext) string { pctx.VariableFunc("TidyDefaultGlobalChecks", func(ctx android.PackageVarContext) string {
if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" { if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" {
return override return override
} }
return strings.Join([]string{ return strings.Join([]string{
"*", "-*",
"-altera-*", "bugprone*",
"clang-diagnostic-unused-command-line-argument",
"google*",
"misc-macro-parentheses",
"performance*",
"-bugprone-narrowing-conversions", "-bugprone-narrowing-conversions",
"-cppcoreguidelines-*", "-google-readability*",
"-fuchsia-*",
"-google-readability-*",
"-google-runtime-references", "-google-runtime-references",
"-hicpp-*",
"-llvm-*",
"-llvmlibc-*",
"-misc-no-recursion",
"-misc-non-private-member-variables-in-classes",
"-misc-unused-parameters",
"-modernize-*",
"-readability-*",
}, ",") }, ",")
}) })