Skip to content

Commit 3f3dee5

Browse files
committed
Introduce a constant for clang_version and migrate 19 -> 20
1 parent a1b809d commit 3f3dee5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/coding-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Use the `clang-format` to format the code:
1313
$ make indent
1414
```
1515

16-
To avoid formatting differences between `clang-format` versions, we currently use `clang-format-19`. The [clang-format Python distribution](https://pypi.org/project/clang-format/) provides precompiled binaries for all major platforms:
16+
To avoid formatting differences between `clang-format` versions, we currently use `clang-format-{{ extra.clang_version }}`. The [clang-format Python distribution](https://pypi.org/project/clang-format/) provides precompiled binaries for all major platforms:
1717

1818
```shell
19-
$ uv tool install 'clang-format==19.*'
19+
$ uv tool install 'clang-format=={{ extra.clang_version }}.*'
2020
$ alias clang-format='uvx clang-format'
2121
```
2222

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ extra:
1212
organization_url: https://github.com/MidnightCommander
1313
source_url: https://source.midnight-commander.org
1414

15+
clang_version: 20
16+
1517
social:
1618
- icon: fontawesome/brands/github
1719
link: https://github.com/MidnightCommander

0 commit comments

Comments
 (0)