From 2b80f417d76a53f09f9a0418d629260130293c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Betto?= <niccolo.betto@skywarder.eu> Date: Thu, 5 Dec 2024 23:37:04 +0000 Subject: [PATCH] Update to clang-format 18 and clang-tidy 18 --- Dockerfile | 12 ++++++------ README.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7307107..4d18a8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,14 +37,14 @@ RUN git clone --depth 1 --branch 2.7 https://github.com/danmar/cppcheck.git RUN cd cppcheck && make install FILESDIR=/usr/share/cppcheck RUN rm -rf cppcheck -# clang-format and clang-tidy v14.0.0 +# clang-format and clang-tidy v18.0.0 RUN apt-get install -y software-properties-common RUN wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - -RUN add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main' -RUN apt-get install -y clang-format-14 -RUN apt-get install -y clang-tidy-14 -RUN ln -s /usr/bin/clang-format-14 /usr/bin/clang-format -RUN ln -s /usr/bin/clang-tidy-14 /usr/bin/clang-tidy +RUN add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main' +RUN apt-get install -y clang-format-18 +RUN apt-get install -y clang-tidy-18 +RUN ln -s /usr/bin/clang-format-18 /usr/bin/clang-format +RUN ln -s /usr/bin/clang-tidy-18 /usr/bin/clang-tidy # Doxygen v1.10.0 RUN wget https://github.com/doxygen/doxygen/releases/download/Release_1_10_0/doxygen-1.10.0.linux.bin.tar.gz diff --git a/README.md b/README.md index 93ea557..8b99b5b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This image includes the following tools: - Ninja v1.11.1 - Ccache v4.9.1 - Cppcheck v2.7 -- clang-format v14.0.0 -- clang-tidy v14.0.0 +- clang-format v18.0.0 +- clang-tidy v18.0.0 - Doxygen v1.10.0 - python3 v3.10 -- GitLab