Disable cert-dcl51-cpp and -cert-dcl37-c.

Disable them for the next clang compiler update.

Bug: 153464409
Test: WITH_TIDY=1 make

Change-Id: I27c315637e02c7c6c708a24a04220f10136b681a
This commit is contained in:
Yabin Cui
2020-04-09 16:28:24 -07:00
parent 1062943c8a
commit 70ba0e23a4

View File

@@ -120,7 +120,7 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
// https://b.corp.google.com/issues/153464409
// many local projects enable cert-* checks, which
// trigger bugprone-reserved-identifier.
tidyChecks = tidyChecks + ",-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 {