From e9dca0aa0e73f4ab0f07457d064f438bb13fde4a Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 25 Jan 2021 14:00:51 -0800 Subject: [PATCH] Enable clang-analyzer-optin.performance.* checks * Now CLANG_ANALYZER_CHECKS=1 simply enable all clang-analyzer-* checks. Test: make with WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 Change-Id: Ib97a2c491df66088197805e979e4bec28f2f433c --- cc/config/tidy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cc/config/tidy.go b/cc/config/tidy.go index d5d01b444..7cc9f438c 100644 --- a/cc/config/tidy.go +++ b/cc/config/tidy.go @@ -62,10 +62,8 @@ 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. - // 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") { - checks += ",clang-analyzer-*,-clang-analyzer-optin.performance.*" + checks += ",clang-analyzer-*" } return checks })