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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3a85997410b2b28bdf8546457f88bce4f141c8c1
This commit is contained in:
Chih-Hung Hsieh
2021-01-14 08:27:15 +00:00
committed by Automerger Merge Worker

View File

@@ -22,7 +22,7 @@ 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 // Default global tidy checks must exclude all checks that
// have found too many warnings. // have found too many false positives.
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