Skip to content

Commit cf6e9d4

Browse files
committed
[FORMAT/CI] push clang-format version to 22 and note this in README
1 parent c7543fa commit cf6e9d4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cpp-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
with:
49-
version: 21 # default is 18
49+
version: 22 # default is 18
5050

5151
style: 'file' # Use .clang-format config file.
5252
tidy-checks: '-*' # disable clang-tidy checks.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Percentages and comments should be kept, but always check the difference.
5353
1. Stronghold Crusader 1.41 Latin. The Steam version is the easiest one to get, but any patched version will do. Make sure the installation uses a Latin version (English, German, etc).
5454
2. CMake with the minimum version 3.24.
5555
3. [Python3](https://www.python.org/)
56-
4. A way to execute `clang-format`
56+
4. A way to execute `clang-format 22`
5757
5. (Recommended) An IDE with CMake integration. The repository has been optimized for Visual Studio Code using the [Microsoft C/C++ Extension Pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack).
5858

5959
### Setup
@@ -91,7 +91,7 @@ If the scripts are preferred, the following triggers a build using the scripts:
9191

9292
If CMake is installed and not in PATH, for example if installed via Visual Studio, `cmakew.bat` can be used instead. It tries to detect a CMake installation and uses it.
9393

94-
Note that any code needs to be formatted properly using the provided `clang-format`. The way to do so it up to the developer. Many IDEs support it out of the box.
94+
Note that any code needs to be formatted properly using the provided `clang-format` file. The way to do so it up to the developer. Many IDEs support it out of the box. Should issues occur, please note that we target clang-format 22. So if your local version or IDE seems to not produce the right format, switch to a fixed version installed on your system.
9595

9696
If any `.cpp` or `.c` files are added to the source code, they should be listed in one of the txt files in `cmake/`:
9797

0 commit comments

Comments
 (0)