Skip to content

Commit 063afc4

Browse files
Bump clang-format version
1 parent 1094782 commit 063afc4

File tree

6 files changed

+270
-222
lines changed

6 files changed

+270
-222
lines changed

.clang-format

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
Language: Cpp
32
# Access specifiers are best unindented, to keep them easy to spot:
43
AccessModifierOffset: -4
54
# Keep them together. Would be preferable to put all arguments on a new line

include/mlib/str.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ mlib_constexpr mlib_str_view _mlib_str_view_chopnulls(mlib_str_view str) mlib_no
121121
* remaining length.
122122
*/
123123
#define mlib_str_subview(S, Pos, Len) _mlib_str_subview(mlib_str_view_from((S)), Pos, Len)
124-
mlib_constexpr mlib_str_view _mlib_str_subview(mlib_str_view s,
125-
size_t at,
126-
size_t len) mlib_noexcept {
124+
mlib_constexpr
125+
mlib_str_view _mlib_str_subview(mlib_str_view s, size_t at, size_t len) mlib_noexcept {
127126
assert(at <= s.len);
128127
const size_t remain = s.len - at;
129128
if (len > remain) {
@@ -232,7 +231,7 @@ typedef struct mlib_str_mut {
232231

233232
#if mlib_is_cxx()
234233
bool operator==(std::string_view sv) const noexcept { return sv == std::string_view(*this); }
235-
operator std::string_view() const noexcept {
234+
operator std::string_view() const noexcept {
236235
return std::string_view(data, _mlib_str_length(str));
237236
}
238237
#endif

include/mlib/vec.t.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ mlib_nodiscard("Check the returned pointer for failure")
140140
/**
141141
* @brief Create a new empty vector
142142
*/
143-
vec_extern_inline VecName fn(new(mlib_allocator alloc)) mlib_noexcept {
143+
vec_extern_inline VecName fn(new (mlib_allocator alloc)) mlib_noexcept {
144144
VecName ret;
145145
ret.data = NULL;
146146
ret.size = 0;
147147
ret.allocator = alloc;
148148
return ret;
149149
}
150150

151-
vec_extern_inline void fn(delete(VecName v)) mlib_noexcept { (void)fn(resize(&v, 0)); }
151+
vec_extern_inline void fn(delete (VecName v)) mlib_noexcept { (void)fn(resize(&v, 0)); }
152152
mlib_assoc_deleter(VecName, fn(delete));
153153

154154
/**

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ package = false
1313
[dependency-groups]
1414
build = ["cmake~=3.25.0", "ninja~=1.13.0"]
1515

16-
format = ["clang-format~=20.1.0"]
16+
format = [
17+
"clang-format>=21.1.5",
18+
]
1719

1820
docs = [
1921
"sphinx~=8.0.2",

src/amongoc/coroutine.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ class unique_co_handle {
9292
[[nodiscard(
9393
"release() returns the coroutine handle without destroying it. "
9494
"Did you mean to use reset()?")]] //
95-
constexpr coroutine_handle_type
96-
release() noexcept {
95+
constexpr coroutine_handle_type release() noexcept {
9796
return std::exchange(_co, nullptr);
9897
}
9998

0 commit comments

Comments
 (0)