Update format checking to clang-format version 18 #229
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
It has become hard to find and install
clang-format
version 9. However, the previous attempt in pull request #227 for updating theclang-format
version was flawed. Please disregard any information in that pull request.Description
With this pull-request the SKIRT repository is updated to use
clang-format
version 18.1. This is the most recent version that can be easily installed on Ubuntu 24.04 and with some effort on macOS as well.Specifically:
formatSourceCode.sh
shell script and the GitHub format checking workflow now useclang-format
version 18.1.formatSourceCode.sh
shell script now performs the formatting on multiple cores in parallel.Action required for developers
Developers who wish to contribute to the repository should install
clang-format
version 18.1 on their system and include its path in thePATH
environment variable.clang-format
tool included with Xcode is not lined up with official LLVM versions.