Skip to content

Commit 47a71b6

Browse files
committed
Use clang-format-20
1 parent f2bdc45 commit 47a71b6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install clang-format
2727
run: |
2828
sudo apt-get update
29-
sudo apt-get install -y clang-format
29+
sudo apt-get install -y clang-format-20
3030
3131
- name: Check clang-format
3232
run: |

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install clang-format
2323
run: |
2424
sudo apt-get update
25-
sudo apt-get install -y clang-format
25+
sudo apt-get install -y clang-format-20
2626
2727
- name: Check clang-format
2828
run: |

check-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
failed_files=$( \
44
find src -type f \( -name "*.cpp" -o -name "*.h" \) \
5-
-exec sh -c 'for f; do [ "$(clang-format "$f")" != "$(cat "$f")" ] && echo "$f"; done' _ {} +)
5+
-exec sh -c 'for f; do [ "$(clang-format-20 "$f")" != "$(cat "$f")" ] && echo "$f"; done' _ {} +)
66

77
if [ -n "$failed_files" ]; then
88
echo "The following files are not properly formatted:"

0 commit comments

Comments
 (0)