diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-10 16:28:56 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-12-10 16:28:56 -0800 |
commit | 327b6f0c6932c8c48798410c3d3f8a9a6c5b41ea (patch) | |
tree | 1608e0a5870a3a9773ecaf29b9ad8e07125deb13 | |
parent | 02c0ad48ba8f56a07bb9d3562e1631c9fbb60e01 (diff) | |
download | build_soong-327b6f0c6932c8c48798410c3d3f8a9a6c5b41ea.tar.gz build_soong-327b6f0c6932c8c48798410c3d3f8a9a6c5b41ea.tar.bz2 build_soong-327b6f0c6932c8c48798410c3d3f8a9a6c5b41ea.zip |
Disable cert-dcl16-c clang-tidy check for mingw32.
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-*
Change-Id: Ibe46409543eaa4a7f3b710d9742b3252dc9ac7e8
-rw-r--r-- | cc/tidy.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |