[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <edc9712e479c433471a5c6b14d3e7ede9c228f5c.1665026261.git.quic_gurus@quicinc.com>
Date: Wed, 5 Oct 2022 20:24:00 -0700
From: Guru Das Srinagesh <quic_gurus@...cinc.com>
To: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Tom Rix <trix@...hat.com>
CC: Elliot Berman <quic_eberman@...cinc.com>, <llvm@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>,
Guru Das Srinagesh <quic_gurus@...cinc.com>
Subject: [PATCH 2/2] scripts/clang-tools: Remove core.uninitialized.Assign check
Remove this check as it leads to false positives in some cases (not all):
warning: Assigned value is garbage or undefined
[clang-analyzer-core.uninitialized.Assign]
list_for_each_entry_safe(page, tmp_page, &pages, lru)
^
Signed-off-by: Guru Das Srinagesh <quic_gurus@...cinc.com>
---
scripts/clang-tools/run-clang-tools.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/clang-tools/run-clang-tools.py b/scripts/clang-tools/run-clang-tools.py
index a72c4c7..714cb82 100755
--- a/scripts/clang-tools/run-clang-tools.py
+++ b/scripts/clang-tools/run-clang-tools.py
@@ -54,6 +54,7 @@ def run_analysis(entry):
# List of checks to be excluded
exclude = []
exclude.append("-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling")
+ exclude.append("-clang-analyzer-core.uninitialized.Assign")
checks += ''.join(["," + e for e in exclude])
p = subprocess.run(["clang-tidy", "-p", args.path, checks, entry["file"]],
--
2.7.4
Powered by blists - more mailing lists