Merge "Enable clang-analyzer-optin.performance.* checks" am: 7328c25275

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6761f7caaa6f63fd0127b8b37b359f4c1a4b2c39
This commit is contained in:
Treehugger Robot
2021-01-26 00:46:03 +00:00
committed by Automerger Merge Worker

View File

@@ -62,10 +62,8 @@ func init() {
}, ",") }, ",")
// clang-analyzer-* checks are too slow to be in the default for WITH_TIDY=1. // 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. // nightly builds add CLANG_ANALYZER_CHECKS=1 to run those checks.
// Some test code have clang-diagnostic-padded warnings that cannot be
// suppressed, but only by disabling clang-analyzer-optin.performance.*.
if ctx.Config().IsEnvTrue("CLANG_ANALYZER_CHECKS") { if ctx.Config().IsEnvTrue("CLANG_ANALYZER_CHECKS") {
checks += ",clang-analyzer-*,-clang-analyzer-optin.performance.*" checks += ",clang-analyzer-*"
} }
return checks return checks
}) })