... | @@ -154,22 +154,16 @@ correct, and will fail otherwise. This means that you should run `clang-format` |
... | @@ -154,22 +154,16 @@ correct, and will fail otherwise. This means that you should run `clang-format` |
|
locally before pushing any change to the C++ codebase.
|
|
locally before pushing any change to the C++ codebase.
|
|
|
|
|
|
Since the behaviour of `clang-format` varies slightly across versions, it is
|
|
Since the behaviour of `clang-format` varies slightly across versions, it is
|
|
necessary to stick to a specific version. We currently use version 15 of
|
|
necessary to stick to a specific version. We currently use version 16 of
|
|
`clang-format`.
|
|
`clang-format`.
|
|
|
|
|
|
### Installing clang-format locally
|
|
### Installing clang-format locally
|
|
|
|
|
|
Under Debian, use the `clang-format-15` package. Make sure that the generic
|
|
Under Debian, use the `clang-format-16` package. Make sure that the generic
|
|
`clang-format` package is not installed, nor any more recent version of
|
|
`clang-format` package is not installed, nor any more recent version of
|
|
`clang-format`, otherwise selection of the correct binary may fail (see below).
|
|
`clang-format`, otherwise selection of the correct binary may fail (see below).
|
|
|
|
|
|
Under MSYS2, the package `mingw-w64-x86_64-clang-15` provides the right
|
|
MSYS2 and Homebrew currently do not provide version 16 of `clang-format`.
|
|
version of `clang-format`, under the `/mingw64/opt/llvm-15/bin/` directory.
|
|
|
|
That latter directory is not in the `PATH` by default, so it should probably be
|
|
|
|
added first in the `PATH` in order to make sure that it is used preferably to
|
|
|
|
others (untested).
|
|
|
|
|
|
|
|
Homebrew currently does not provide version 15 of `clang-format`.
|
|
|
|
|
|
|
|
### Applying the style with Meson
|
|
### Applying the style with Meson
|
|
|
|
|
... | | ... | |