Upgrade clang-tidy version to 14.0.0
Fix a clang issue appearing in clang-tidy-13.0.1
Details refer to: https://reviews.llvm.org/rG1f2d40c47f5f8fd01d91d73a1f52044fe1c83225
[clang-tidy] fix duplicate '{}' in cppcoreguidelines-pro-type-member-init
Issue: The overload of the constructor will repeatedly fix the member
variables that need to be initialized, Removed the duplicate '{}'.
In current ubuntu:jammy, clang version 14.0.0 is available, so we can use
clang-tidy 14.0.0 to fix the clang issue.
Change-Id: I312888b13ed0ed39e0edf502eca46b11b9e9a62f
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index 1cf714b..d8fa7ee 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -772,10 +772,10 @@
git \
dbus \
iputils-ping \
- clang-13 \
- clang-format-13 \
- clang-tidy-13 \
- clang-tools-13 \
+ clang-14 \
+ clang-format-14 \
+ clang-tidy-14 \
+ clang-tools-14 \
shellcheck \
npm \
iproute2 \
@@ -818,12 +818,12 @@
--slave /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 \
--slave /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11
-RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 1000 \
- --slave /usr/bin/clang++ clang++ /usr/bin/clang++-13 \
- --slave /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-13 \
- --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-13 \
- --slave /usr/bin/run-clang-tidy run-clang-tidy.py /usr/bin/run-clang-tidy-13 \
- --slave /usr/bin/scan-build scan-build /usr/bin/scan-build-13
+RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 1000 \
+ --slave /usr/bin/clang++ clang++ /usr/bin/clang++-14 \
+ --slave /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-14 \
+ --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-14 \
+ --slave /usr/bin/run-clang-tidy run-clang-tidy.py /usr/bin/run-clang-tidy-14 \
+ --slave /usr/bin/scan-build scan-build /usr/bin/scan-build-14
"""