Skip to content

Commit e382cd3

Browse files
authored
Bump versions (#128)
* bump versions * now format * coping over changes which fixed cppcheck * fix * trying this * another fix * fix clang tidy * remove bitset actually * remove
1 parent edd6d39 commit e382cd3

30 files changed

+63
-96
lines changed

.github/workflows/programming_team_code_ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
sudo apt install -y wget software-properties-common
4040
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
4141
- name: Install dependencies
42-
run: sudo apt update && sudo apt install -y clang-format-18 cppcheck
42+
run: sudo apt update && sudo apt install -y clang-format-19 cppcheck
4343
- name: checks format then lints
4444
run: make --directory=tests/ check_format_lint
4545

@@ -53,7 +53,7 @@ jobs:
5353
sudo apt install -y wget software-properties-common
5454
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
5555
- name: Install dependencies
56-
run: sudo apt update && sudo apt install -y clang-tidy-18
56+
run: sudo apt update && sudo apt install -y clang-tidy-19
5757
- name: clang-tidy
5858
run: make --directory=tests/ clangtidy
5959

@@ -68,8 +68,10 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- uses: actions/checkout@v2
71+
- name: Set up LLVM repository
72+
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
7173
- name: Install dependencies
72-
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
74+
run: sudo apt update && sudo apt install -y clang-19
7375
- name: Compile all tests
7476
run: make --directory=tests/ compile_clang
7577

@@ -88,10 +90,11 @@ jobs:
8890
run: |
8991
sudo apt update
9092
sudo apt install texlive texlive-latex-extra rename nodejs npm
91-
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
93+
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
94+
sudo apt update && sudo apt install -y clang-19
9295
- name: build ptc
9396
run: make --directory=tests/ ptc
94-
- uses: actions/upload-artifact@v3
97+
- uses: actions/upload-artifact@v4
9598
with:
9699
name: ptc
97100
path: tests/ptc.pdf
@@ -102,7 +105,7 @@ jobs:
102105
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
103106
steps:
104107
- uses: actions/checkout@v2
105-
- uses: actions/download-artifact@v3
108+
- uses: actions/download-artifact@v4
106109
with:
107110
name: ptc
108111
path: tests/ptc.pdf
@@ -126,7 +129,7 @@ jobs:
126129
sudo apt install -y wget software-properties-common
127130
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
128131
- name: Install dependencies
129-
run: sudo apt update && sudo apt install -y clang-format-18
132+
run: sudo apt update && sudo apt install -y clang-format-19
130133
- name: Combine includes and force push to main branch
131134
run: |
132135
git config --local user.name github-actions

library/contest/dynamic_bitset.hpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

library/data_structures/uncommon/priority_queue_of_updates.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ template<class DS, class... ARGS> struct pq_updates {
3434
vector<upd> extra;
3535
int idx = sz(upd_st) - 1, lowest_pri = INT_MAX;
3636
for (auto it = rbegin(mp);
37-
2 * sz(extra) < sz(upd_st) - idx; it++) {
37+
2 * sz(extra) < sz(upd_st) - idx; it++) {
3838
auto [pri, idx_sk] = *it;
3939
extra.push_back(upd_st[idx_sk]);
4040
idx = min(idx, idx_sk), lowest_pri = pri;

library/loops/chooses.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
//! @time O(n choose k)
66
//! @space O(1)
77
for (int mask = (1 << k) - 1; mask < (1 << n);
8-
mask = next_subset(mask))
8+
mask = next_subset(mask))

library/loops/submasks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
//! of every mask of size n
66
//! @space O(1)
77
for (int submask = mask; submask;
8-
submask = (submask - 1) & mask)
8+
submask = (submask - 1) & mask)

library/loops/supermasks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
//! of every mask of size n
77
//! @space O(1)
88
for (int supermask = mask; supermask < (1 << n);
9-
supermask = (supermask + 1) | mask)
9+
supermask = (supermask + 1) | mask)

library/math/partitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ vector<ll> partitions(int n) {
1212
rep(i, 1, n) {
1313
ll sum = 0;
1414
for (int j = 1, pent = 1, sign = 1; pent <= i;
15-
j++, pent += 3 * j - 2, sign = -sign) {
15+
j++, pent += 3 * j - 2, sign = -sign) {
1616
if (pent + j <= i)
1717
sum += dp[i - pent - j] * sign + mod;
1818
sum += dp[i - pent] * sign + mod;

library/math/prime_sieve/mobius.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
vi mobius(100'005);
55
mobius[1] = 1;
66
rep(i, 1, sz(mobius)) for (int j = i + i; j < sz(mobius);
7-
j += i) mobius[j] -= mobius[i];
7+
j += i) mobius[j] -= mobius[i];

library/monotonic_stack/cartesian_binary_tree.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
vi cart_binary_tree(const vi& l) {
2525
vi p(l);
2626
rep(i, 0, sz(p)) for (int j = i - 1; j != l[i];
27-
j = l[j]) if (l[j] == l[i]) p[j] =
28-
i;
27+
j = l[j]) if (l[j] == l[i]) p[j] = i;
2928
return p;
3029
}

library/monotonic_stack/monotonic_stack.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
//! a[le[i]] < a[i]
88
//! @time O(n)
99
//! @space O(n)
10-
vi mono_st(const auto& a, auto cmp) {
10+
vi mono_st(const auto& a, const auto& cmp) {
1111
vi l(sz(a));
12-
rep(i, 0, sz(a)) for (
13-
l[i] = i - 1; l[i] >= 0 && !cmp(a[l[i]], a[i]);) l[i] =
14-
l[l[i]];
12+
rep(i, 0, sz(a)) for (l[i] = i - 1;
13+
l[i] >= 0 && !cmp(a[l[i]], a[i]);) l[i] = l[l[i]];
1514
return l;
1615
}

0 commit comments

Comments
 (0)