[PATCH 2/2] scripts/clang-tools: Remove core.uninitialized.Assign check
From: Guru Das Srinagesh
Date: Wed Oct 05 2022 - 23:26:27 EST
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@xxxxxxxxxxx>
---
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