From c6d99ddae535f4e03cc3fc21c6b0b4dcf7230594 Mon Sep 17 00:00:00 2001 From: Nils Husung Date: Wed, 16 Oct 2024 10:04:03 +0200 Subject: [PATCH] Silence clang-format version-specific fmt issue --- bindings/cpp/tests/boolean-function.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/cpp/tests/boolean-function.cpp b/bindings/cpp/tests/boolean-function.cpp index f0e15dd..262e515 100644 --- a/bindings/cpp/tests/boolean-function.cpp +++ b/bindings/cpp/tests/boolean-function.cpp @@ -45,7 +45,11 @@ class enumerate_view : public std::ranges::view_interface> { constexpr enumerate_view() requires std::default_initializable = default; + // clang-format off + // Ubuntu 24.04. has clang-format 18.1.3, which wants to remove the space + // before `{}`. clang-format 18.1.8, however, wants the space. constexpr explicit enumerate_view(V base) : _base(std::move(base)) {}; + // clang-format on [[nodiscard]] constexpr iterator begin() const { return iterator(std::ranges::begin(_base), 0);