Skip to content

Commit

Permalink
clang-format: bump to llvm 18 toolchain
Browse files Browse the repository at this point in the history
Use the latest released clang-format-18 version. Note that in the ubuntu world
this is for now only available in the noble development version, so projects
that have a contribution forkflow that requires contributors to run formatting
locally should probably explicitly opt for an older version (see #550).
  • Loading branch information
wirew0rm authored and pbrisbin committed Apr 24, 2024
1 parent acbe769 commit c7c5672
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang-format/Dockerfile
Expand Up @@ -5,14 +5,14 @@ RUN \
apt-get update -y && \
apt-get install -y --no-install-recommends ca-certificates gnupg2 wget && \
{ \
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"; \
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"; \
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"; \
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"; \
} >>/etc/apt/sources.list && \
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-get update -y && \
apt-get install -y --no-install-recommends clang-format-17 && \
apt-get install -y --no-install-recommends clang-format-18 && \
rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/clang-format-17 /usr/bin/clang-format
RUN ln -s /usr/bin/clang-format-18 /usr/bin/clang-format
RUN mkdir -p /code
WORKDIR /code
ENTRYPOINT []
Expand Down

0 comments on commit c7c5672

Please sign in to comment.