Merge "Set NoWarningsAsErrorsInTidyFlags"

This commit is contained in:
Chih-hung Hsieh 2022-06-14 16:48:50 +00:00 committed by Gerrit Code Review
commit 4fd41ddb4a
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ import (
)
var (
// Some clang-tidy checks have bugs or not work for Android.
// Some clang-tidy checks have bugs or don't work for Android.
// They are disabled here, overriding any locally selected checks.
globalNoCheckList = []string{
// https://b.corp.google.com/issues/153464409

View file

@ -66,7 +66,7 @@ func (tidy *tidyFeature) props() []interface{} {
// Set this const to true when all -warnings-as-errors in tidy_flags
// are replaced with tidy_checks_as_errors.
// Then, that old style usage will be obsolete and an error.
const NoWarningsAsErrorsInTidyFlags = false
const NoWarningsAsErrorsInTidyFlags = true
func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
CheckBadTidyFlags(ctx, "tidy_flags", tidy.Properties.Tidy_flags)