Skip to content

Commit 5bc56e2

Browse files
committed
Update clang-format to version 21
1 parent 2727215 commit 5bc56e2

File tree

6 files changed

+666
-667
lines changed

6 files changed

+666
-667
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Install clang-format
1919
run: |
2020
wget https://apt.llvm.org/llvm.sh
21-
sudo bash ./llvm.sh 17
22-
sudo apt install clang-format-17
21+
sudo bash ./llvm.sh 21
22+
sudo apt install clang-format-21
2323
2424
- name: Run clang-format
2525
run: |
2626
find include src -name '*.h' -o -name '*.cc' | \
27-
xargs clang-format-17 -i -style=file -fallback-style=none
27+
xargs clang-format-21 -i -style=file -fallback-style=none
2828
git diff --exit-code

include/fmt/base.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,8 +1850,7 @@ template <typename T> class buffer {
18501850
#if !FMT_MSC_VERSION || FMT_MSC_VERSION >= 1940
18511851
FMT_CONSTEXPR20
18521852
#endif
1853-
void
1854-
append(const U* begin, const U* end) {
1853+
void append(const U* begin, const U* end) {
18551854
while (begin != end) {
18561855
auto size = size_;
18571856
auto free_cap = capacity_ - size;

include/fmt/color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ enum class color : uint32_t {
155155
white_smoke = 0xF5F5F5, // rgb(245,245,245)
156156
yellow = 0xFFFF00, // rgb(255,255,0)
157157
yellow_green = 0x9ACD32 // rgb(154,205,50)
158-
}; // enum class color
158+
}; // enum class color
159159

160160
enum class terminal_color : uint8_t {
161161
black = 30,

0 commit comments

Comments
 (0)