build-unit-test-docker: update to clang-19
Clang-19 was released in September. Update our Docker container
to utilize it.
This will likely require re-running clang-format on most repositories
since it does not seem 100% compatible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I88192b41ab7a95599a90915013579608af7bc56f
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index 1f23413..49c6fb4 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -903,21 +903,21 @@
update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-14 14
# Set up LLVM apt repository.
-RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 18
+RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 19
# Install extra clang tools
-RUN apt-get install \
- clang-18 \
- clang-format-18 \
- clang-tidy-18
+RUN apt-get install -y \
+ clang-19 \
+ clang-format-19 \
+ clang-tidy-19
-RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 1000 \
- --slave /usr/bin/clang++ clang++ /usr/bin/clang++-18 \
- --slave /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-18 \
- --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-18 \
+RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 1000 \
+ --slave /usr/bin/clang++ clang++ /usr/bin/clang++-19 \
+ --slave /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-19 \
+ --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-19 \
--slave /usr/bin/run-clang-tidy run-clang-tidy.py \
- /usr/bin/run-clang-tidy-18 \
- --slave /usr/bin/scan-build scan-build /usr/bin/scan-build-18
+ /usr/bin/run-clang-tidy-19 \
+ --slave /usr/bin/scan-build scan-build /usr/bin/scan-build-19
"""