Revert "To use same default for the nightly builds."
This reverts commit b063dc4221
.
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
This commit is contained in:
committed by
Chih-Hung Hsieh
parent
6c0a9f69e9
commit
46cad069d1
@@ -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-*",
|
|
||||||
}, ",")
|
}, ",")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user