diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-12-11 17:41:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-12-11 17:41:38 +0000 |
commit | d340852732bc77bf8bf89eb6ce60376fc996679b (patch) | |
tree | b201ba333cfb5cd2d2cbb835772a88c2b7424790 | |
parent | 090d9df206512a44f86df8f95767a0bd48b84be5 (diff) | |
parent | 327b6f0c6932c8c48798410c3d3f8a9a6c5b41ea (diff) | |
download | build_soong-d340852732bc77bf8bf89eb6ce60376fc996679b.tar.gz build_soong-d340852732bc77bf8bf89eb6ce60376fc996679b.tar.bz2 build_soong-d340852732bc77bf8bf89eb6ce60376fc996679b.zip |
Merge "Disable cert-dcl16-c clang-tidy check for mingw32."
-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 |