Merge "To use same default for the nightly builds." am: 66f7fdd1c8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1546617 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I23c021cd58f66575f1f624b90cbe82a2ed128ec4
This commit is contained in:
@@ -21,23 +21,28 @@ 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.
|
||||||
// Global tidy checks include only google*, performance*,
|
// Default global tidy checks must exclude all checks that
|
||||||
// and misc-macro-parentheses, but not google-readability*
|
// have found too many warnings.
|
||||||
// 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{
|
||||||
"-*",
|
"*",
|
||||||
"bugprone*",
|
"-altera-*",
|
||||||
"clang-diagnostic-unused-command-line-argument",
|
|
||||||
"google*",
|
|
||||||
"misc-macro-parentheses",
|
|
||||||
"performance*",
|
|
||||||
"-bugprone-narrowing-conversions",
|
"-bugprone-narrowing-conversions",
|
||||||
"-google-readability*",
|
"-cppcoreguidelines-*",
|
||||||
|
"-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