Merge changes I27c31563,I126d2f51 into rvc-dev

* changes:
  Disable cert-dcl51-cpp and -cert-dcl37-c.
  Disable bugprone-reserved-identifier
This commit is contained in:
Yabin Cui 2020-05-01 18:34:09 +00:00 committed by Android (Google) Code Review
commit da831ae8a8
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
// which is used in many Android files.
tidyChecks = tidyChecks + ",-cert-dcl16-c"
}
// https://b.corp.google.com/issues/153464409
// many local projects enable cert-* checks, which
// trigger bugprone-reserved-identifier.
tidyChecks = tidyChecks + ",-bugprone-reserved-identifier*,-cert-dcl51-cpp,-cert-dcl37-c"
flags.TidyFlags = append(flags.TidyFlags, tidyChecks)
if len(tidy.Properties.Tidy_checks_as_errors) > 0 {