Skip to content

Commit db1dd31

Browse files
committed
bump clang version
1 parent 34cba6b commit db1dd31

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/programming_team_code_ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
sudo apt install -y wget software-properties-common
4242
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
4343
- name: Install dependencies
44-
run: sudo apt update && sudo apt install -y clang-format-19 cppcheck
44+
run: sudo apt update && sudo apt install -y clang-format-22 cppcheck
4545
- name: grep, clang-format, cppcheck
4646
run: make --directory=tests/ grep_clangformat_cppcheck
4747

@@ -55,7 +55,7 @@ jobs:
5555
sudo apt install -y wget software-properties-common
5656
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
5757
- name: Install dependencies
58-
run: sudo apt update && sudo apt install -y clang-tidy-19
58+
run: sudo apt update && sudo apt install -y clang-tidy-22
5959
- name: clang-tidy
6060
run: make --directory=tests/ clangtidy
6161

@@ -71,9 +71,9 @@ jobs:
7171
steps:
7272
- uses: actions/checkout@v4
7373
- name: Set up LLVM repository
74-
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
74+
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 22
7575
- name: Install dependencies
76-
run: sudo apt update && sudo apt install -y clang-19
76+
run: sudo apt update && sudo apt install -y clang-22
7777
- name: g++ with clang
7878
run: make --directory=tests/ compile_clang
7979

@@ -92,8 +92,8 @@ jobs:
9292
run: |
9393
sudo apt update
9494
sudo apt install texlive texlive-latex-extra rename nodejs npm
95-
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
96-
sudo apt update && sudo apt install -y clang-19
95+
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 22
96+
sudo apt update && sudo apt install -y clang-22
9797
- name: build pdf
9898
run: make --directory=tests/ build_pdf
9999
- uses: actions/upload-artifact@v4
@@ -131,7 +131,7 @@ jobs:
131131
sudo apt install -y wget software-properties-common
132132
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
133133
- name: Install dependencies
134-
run: sudo apt update && sudo apt install -y clang-format-19
134+
run: sudo apt update && sudo apt install -y clang-format-22
135135
- name: Combine includes and force push to main branch
136136
run: |
137137
git config --local user.name github-actions

tests/scripts/clangtidy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ git submodule init
99
git submodule update
1010

1111
find library_checker_aizu_tests/ -type f -name "*.test.cpp" |
12-
parallel clang-tidy-19 --config-file=.config/.clang-tidy {} -- -std=c++20 ||
12+
parallel clang-tidy-22 --config-file=.config/.clang-tidy {} -- -std=c++20 ||
1313
exit 1

tests/scripts/compile_clang.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ git submodule init
99
git submodule update
1010

1111
find library_checker_aizu_tests/ -type f -name "*.test.cpp" |
12-
parallel clang++-19 {} "$(tr '\n' ' ' <.config/.clang_compile_flags)" -std=c++20
12+
parallel clang++-22 {} "$(tr '\n' ' ' <.config/.clang_compile_flags)" -std=c++20

tests/scripts/compile_commented_snippets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ echo "compiling code in @code ... @endcode comments with g++"
3939
g++ -std=c++20 entire_library.cpp || exit 1
4040

4141
echo "compiling code in @code ... @endcode comments with clang++"
42-
clang++-19 -std=c++20 entire_library.cpp || exit 1
42+
clang++-22 -std=c++20 entire_library.cpp || exit 1

tests/scripts/grep_clangformat_cppcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ find ../library/ library_checker_aizu_tests/ -name "*[A-Z]*" -or -name "*-*" |
4343
grep --invert-match "README" &&
4444
exit 1
4545

46-
clang-format-19 --dry-run --Werror --style=file:.config/dev.clang-format library_checker_aizu_tests/**/*.hpp library_checker_aizu_tests/**/*.test.cpp ../library/**/*.hpp ../library/**/*.cpp || exit 1
46+
clang-format-22 --dry-run --Werror --style=file:.config/dev.clang-format library_checker_aizu_tests/**/*.hpp library_checker_aizu_tests/**/*.test.cpp ../library/**/*.hpp ../library/**/*.cpp || exit 1
4747

4848
git submodule init
4949
git submodule update

tests/scripts/update_main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ done
2727
sed --in-place '/^[[:space:]]*$/d' ../**/*.hpp
2828

2929
# cpp command messes up formatting
30-
clang-format-19 -i --style=file:.config/main.clang-format ../**/*.hpp ../**/*.cpp
30+
clang-format-22 -i --style=file:.config/main.clang-format ../**/*.hpp ../**/*.cpp

0 commit comments

Comments
 (0)