commit 5482895d95a16e74d9254459e11849c489dc24e7
parent a863ad4896939a1fbf3432d6b215a43083346313
Author: Mike Hommey <mh+mozilla@glandium.org>
Date: Sun, 16 Nov 2025 01:52:47 +0000
Bug 2000147 - Upgrade clang-tidy to version 20 r=firefox-build-system-reviewers,sergesanspaille
This was forgotten in bug 1923255.
Differential Revision: https://phabricator.services.mozilla.com/D272578
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/taskcluster/kinds/toolchain/clang-tidy.yml b/taskcluster/kinds/toolchain/clang-tidy.yml
@@ -23,7 +23,7 @@ task-defaults:
- 'build/build-clang/build-clang.py'
fetches:
fetch:
- - clang-19
+ - clang-20
linux64-clang-tidy:
index:
diff --git a/tools/clang-tidy/config.yaml b/tools/clang-tidy/config.yaml
@@ -19,7 +19,7 @@ platforms:
# Minimum clang-tidy version that is required for all the following checkers
# to work properly.
# This is also used by 'mach clang-format'
-package_version: "19.1.7"
+package_version: "20.1.8"
clang_checkers:
- name: -*
publish: !!bool no
diff --git a/tools/clang-tidy/test/clang-analyzer-unix.Malloc.json b/tools/clang-tidy/test/clang-analyzer-unix.Malloc.json
@@ -8,12 +8,12 @@
],
[
"warning",
- "Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()",
+ "Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'",
"clang-analyzer-unix.Malloc"
],
[
"warning",
- "Argument to free() is offset by -4 bytes from the start of memory allocated by malloc()",
+ "Argument to 'free()' is offset by -4 bytes from the start of memory allocated by 'malloc()'",
"clang-analyzer-unix.Malloc"
],
{ "reliability": "high" }