Skip to content

Commit b874930

Browse files
format
1 parent 78d0b62 commit b874930

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ AllowShortCaseLabelsOnASingleLine: true
1313
AllowShortCompoundRequirementOnASingleLine: true
1414
AllowShortLambdasOnASingleLine: All
1515
BreakBeforeBraces: Attach
16+
BreakInheritanceList: AfterComma
1617
AlignConsecutiveAssignments: true
1718
AlignConsecutiveBitFields: true
1819
AlignConsecutiveDeclarations: true

ramen/ramen.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,8 @@ struct EnableCopyMove<false> {
495495
// ====================================================================================================================
496496

497497
template <typename R, typename... A, std::size_t footprint, bool movable>
498-
struct Behavior<R(A...), footprint, movable>
499-
: public detail::Port<detail::Triggerable<R(A...)>>
500-
, private detail::EnableCopyMove<movable> {
498+
struct Behavior<R(A...), footprint, movable> : public detail::Port<detail::Triggerable<R(A...)>>,
499+
private detail::EnableCopyMove<movable> {
501500
template <typename F>
502501
requires((Function<R(A...), footprint>::template is_valid_target<F>) && (!std::is_same_v<F, Behavior>))
503502
explicit(false) Behavior(F&& fun)

tests/public.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ TEST_CASE("performance") {
164164

165165
// OOP reference for comparison. Different implementations and dummy data to avoid devirtualization and inlining.
166166
using Base = Callable<void(float&)>;
167-
struct Impl1
168-
: public Base // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
167+
struct Impl1 : public Base // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
169168
{
170169
float& y;
171170
explicit Impl1(float& y)
@@ -176,8 +175,7 @@ TEST_CASE("performance") {
176175
}
177176
virtual ~Impl1() = default;
178177
} const oop_1{ y };
179-
struct Impl2
180-
: public Base // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
178+
struct Impl2 : public Base // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
181179
{
182180
float& y;
183181
explicit Impl2(float& y)

0 commit comments

Comments
 (0)