Messages in this thread Patch in this message | | | From | Guru Das Srinagesh <> | Subject | [PATCH 2/2] scripts/clang-tools: Remove core.uninitialized.Assign check | Date | Wed, 5 Oct 2022 20:24:00 -0700 |
| |
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@quicinc.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
| |