Merge "Disable tidy default DeprecatedOrUnsafeBufferHandling check" am: cf637f101c am: ccf8597e8a am: a16ecabf5f am: 6f507a5e00

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976066

Change-Id: Ic5af155f1c01f916d3a63dde083a1d2b9f1eefff
This commit is contained in:
Treehugger Robot 2022-02-08 04:42:42 +00:00 committed by Automerger Merge Worker
commit 87f6b657ca

View file

@ -62,8 +62,9 @@ func init() {
}, ",")
// clang-analyzer-* checks are too slow to be in the default for WITH_TIDY=1.
// nightly builds add CLANG_ANALYZER_CHECKS=1 to run those checks.
// The insecureAPI.DeprecatedOrUnsafeBufferHandling warning does not apply to Android.
if ctx.Config().IsEnvTrue("CLANG_ANALYZER_CHECKS") {
checks += ",clang-analyzer-*"
checks += ",clang-analyzer-*,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling"
}
return checks
})