Skip to content

Commit 8410802

Browse files
committed
formatting with clang 18
1 parent fbca675 commit 8410802

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

include/reactor-cpp/connection.hh

+6-6
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ public:
143143
};
144144
}
145145

146-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
147-
-> bool override {
146+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
147+
const std::function<bool(void)>& abort_waiting) -> bool override {
148148
reactor_assert(lock.owns_lock());
149149
log_.debug() << "downstream tries to acquire tag " << tag;
150150

@@ -210,8 +210,8 @@ public:
210210
};
211211
}
212212

213-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
214-
-> bool override {
213+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
214+
const std::function<bool(void)>& abort_waiting) -> bool override {
215215
// Since this is a delayed connection, we can go back in time and need to
216216
// acquire the latest upstream tag that can create an event at the given
217217
// tag. We also need to consider that given a delay d and a tag g=(t, n),
@@ -240,8 +240,8 @@ public:
240240
};
241241
}
242242

243-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
244-
-> bool override {
243+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
244+
const std::function<bool(void)>& abort_waiting) -> bool override {
245245
this->log_.debug() << "downstream tries to acquire tag " << tag;
246246
return PhysicalTimeBarrier::acquire_tag(tag, lock, this->environment()->scheduler(), abort_waiting);
247247
}

include/reactor-cpp/time_barrier.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public:
8080
// The caller must hold a lock on the scheduler mutex
8181
auto try_acquire_tag(const Tag& tag) { return tag <= released_time_; }
8282

83-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
84-
-> bool {
83+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
84+
const std::function<bool(void)>& abort_waiting) -> bool {
8585
if (try_acquire_tag(tag)) {
8686
return true;
8787
}

include/reactor-cpp/value_ptr.hh

+10-10
Original file line numberDiff line numberDiff line change
@@ -517,23 +517,23 @@ public:
517517
// Comparison operators
518518

519519
template <class T, class U, bool is_trivial>
520-
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
521-
-> bool {
520+
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1,
521+
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
522522
return ptr1.get() == ptr2.get();
523523
}
524524
template <class T, class U, bool is_trivial>
525-
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1, const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept
526-
-> bool {
525+
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1,
526+
const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
527527
return ptr1.get() == ptr2.get();
528528
}
529529
template <class T, class U, bool is_trivial>
530-
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
531-
-> bool {
530+
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1,
531+
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
532532
return ptr1.get() == ptr2.get();
533533
}
534534
template <class T, class U, bool is_trivial>
535-
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1, const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept
536-
-> bool {
535+
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1,
536+
const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
537537
return ptr1.get() == ptr2.get();
538538
}
539539
template <class T, bool is_trivial>
@@ -554,8 +554,8 @@ auto operator==(std::nullptr_t, const ImmutableValuePtr<T, is_trivial>& ptr1) no
554554
}
555555

556556
template <class T, class U, bool is_trivial>
557-
auto operator!=(const MutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
558-
-> bool {
557+
auto operator!=(const MutableValuePtr<T, is_trivial>& ptr1,
558+
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
559559
return ptr1.get() != ptr2.get();
560560
}
561561

0 commit comments

Comments
 (0)