-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a formatting image with
clang-format
18 (#106)
As we move ahead to using newer compiler features in projects like traccc, some features are not properly formatted by the older versions of `clang-format`. This commit adds a new image with version 18 of `clang-format` which should support a broader range of features.
- Loading branch information
1 parent
7680d98
commit 714007e
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Docker machinery, part of the ACTS project | ||
# | ||
# (c) 2024 CERN for the benefit of the ACTS project | ||
# | ||
# Mozilla Public License Version 2.0 | ||
|
||
FROM ubuntu:24.04 | ||
|
||
LABEL description="Ubuntu with clang-format v18" | ||
LABEL maintainer="Stephen Nicholas Swatman <stephen.nicholas.swatman@cern.ch>" | ||
# increase whenever any of the RUN commands change | ||
LABEL version="1" | ||
|
||
RUN apt-get -y update \ | ||
&& apt-get -y install clang-format-18 git \ | ||
&& apt-get clean all \ | ||
&& update-alternatives \ | ||
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100 \ | ||
--slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-18 \ | ||
--slave /usr/bin/git-clang-format git-clang-format /usr/bin/git-clang-format-18 |