Skip to content

Commit 6bc0bf3

Browse files
committed
Migrate to clang-format 18+
1 parent 7156b86 commit 6bc0bf3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.ci/check-format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SOURCES=$(find $(git rev-parse --show-toplevel) | egrep "\.(cpp|cc|c|h)\$")
44

5-
CLANG_FORMAT=$(which clang-format-12)
5+
CLANG_FORMAT=$(which clang-format-18)
66
if [ $? -ne 0 ]; then
77
CLANG_FORMAT=$(which clang-format)
88
if [ $? -ne 0 ]; then
@@ -18,4 +18,4 @@ do
1818
$CLANG_FORMAT ${file} > expected-format
1919
diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format
2020
done
21-
exit $($CLANG_FORMAT --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")
21+
exit $($CLANG_FORMAT --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")

.github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
- uses: actions/[email protected]
1919
- name: coding convention
2020
run: |
21-
sudo apt-get install -q -y clang-format-12
21+
sudo apt-get install -q -y clang-format-18
2222
sh .ci/check-format.sh
23-
shell: bash
23+
shell: bash

0 commit comments

Comments
 (0)