Merge "Disable cert-dcl16-c clang-tidy check for mingw32." am: d340852732

am: baeab573a1

Change-Id: I8e17caa06e137f3d0179ea0ec0ab4bc84a7edfc5
This commit is contained in:
Chih-hung Hsieh 2018-12-11 09:54:50 -08:00 committed by android-build-merger
commit 418ff7b331

View file

@ -108,6 +108,12 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags {
if len(tidy.Properties.Tidy_checks) > 0 {
tidyChecks = tidyChecks + "," + strings.Join(esc(tidy.Properties.Tidy_checks), ",")
}
if ctx.Windows() {
// https://b.corp.google.com/issues/120614316
// mingw32 has cert-dcl16-c warning in NO_ERROR,
// which is used in many Android files.
tidyChecks = tidyChecks + ",-cert-dcl16-c"
}
flags.TidyFlags = append(flags.TidyFlags, tidyChecks)
return flags