clang-format: update latest spec and reformat with clang-21

Copy the latest format file from the docs repository and apply using
clang-format-21.

See I795e88ada8e676c242b5a18888ce9c08afdedc93 for clang-21 enablement.

Change-Id: If23c0ebde25b8016876e48e4a63697310ea57706
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/sdbusplus/async/stdexec/__detail/__awaitable.hpp b/include/sdbusplus/async/stdexec/__detail/__awaitable.hpp
index 68545a7..b61fbc4 100644
--- a/include/sdbusplus/async/stdexec/__detail/__awaitable.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__awaitable.hpp
@@ -49,7 +49,7 @@
 template <class _Awaitable>
 void __co_await_constraint(_Awaitable&& __awaitable)
     requires requires {
-                 operator co_await(static_cast<_Awaitable &&>(__awaitable));
+                 operator co_await(static_cast<_Awaitable&&>(__awaitable));
              };
 #endif
 
@@ -57,7 +57,7 @@
 auto __get_awaiter(_Awaitable&& __awaitable, __ignore = {}) -> decltype(auto)
 {
     if constexpr (requires {
-                      static_cast<_Awaitable &&>(__awaitable)
+                      static_cast<_Awaitable&&>(__awaitable)
                           .operator co_await();
                   })
     {
@@ -66,7 +66,7 @@
     else if constexpr (requires {
 #if STDEXEC_MSVC()
                            __co_await_constraint(
-                               static_cast<_Awaitable &&>(__awaitable));
+                               static_cast<_Awaitable&&>(__awaitable));
 #else
         operator co_await(static_cast<_Awaitable&&>(__awaitable));
 #endif
@@ -85,13 +85,13 @@
     -> decltype(auto)
     requires requires {
                  __promise->await_transform(
-                     static_cast<_Awaitable &&>(__awaitable));
+                     static_cast<_Awaitable&&>(__awaitable));
              }
 {
     if constexpr (requires {
                       __promise
                           ->await_transform(
-                              static_cast<_Awaitable &&>(__awaitable))
+                              static_cast<_Awaitable&&>(__awaitable))
                           .operator co_await();
                   })
     {
@@ -102,7 +102,7 @@
     else if constexpr (requires {
 #if STDEXEC_MSVC()
                            __co_await_constraint(__promise->await_transform(
-                               static_cast<_Awaitable &&>(__awaitable)));
+                               static_cast<_Awaitable&&>(__awaitable)));
 #else
         operator co_await(__promise->await_transform(static_cast<_Awaitable&&>(__awaitable)));
 #endif
@@ -122,7 +122,7 @@
 concept __awaitable = //
     requires(_Awaitable&& __awaitable, _Promise*... __promise) {
         {
-            stdexec::__get_awaiter(static_cast<_Awaitable &&>(__awaitable),
+            stdexec::__get_awaiter(static_cast<_Awaitable&&>(__awaitable),
                                    __promise...)
         } -> __awaiter<_Promise...>;
     };
diff --git a/include/sdbusplus/async/stdexec/__detail/__concepts.hpp b/include/sdbusplus/async/stdexec/__detail/__concepts.hpp
index 5ea9516..e31f7ba 100644
--- a/include/sdbusplus/async/stdexec/__detail/__concepts.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__concepts.hpp
@@ -41,15 +41,15 @@
 {
 //////////////////////////////////////////////////////////////////////////////////////////////////
 template <class _Fun, class... _As>
-concept __callable =                                               //
-    requires(_Fun&& __fun, _As&&... __as) {                        //
-        static_cast<_Fun &&>(__fun)(static_cast<_As &&>(__as)...); //
+concept __callable =                                             //
+    requires(_Fun&& __fun, _As&&... __as) {                      //
+        static_cast<_Fun&&>(__fun)(static_cast<_As&&>(__as)...); //
     };
 template <class _Fun, class... _As>
 concept __nothrow_callable =    //
     __callable<_Fun, _As...> && //
     requires(_Fun&& __fun, _As&&... __as) {
-        { static_cast<_Fun &&>(__fun)(static_cast<_As &&>(__as)...) } noexcept;
+        { static_cast<_Fun&&>(__fun)(static_cast<_As&&>(__as)...) } noexcept;
     };
 
 //////////////////////////////////////////////////////////////////////////////////////////////////
@@ -190,7 +190,7 @@
     //   const std::remove_reference_t<_LHS>&,
     //   const std::remove_reference_t<_RHS>&> &&
     requires(_LHS __lhs, _RHS&& __rhs) {
-        { __lhs = static_cast<_RHS &&>(__rhs) } -> same_as<_LHS>;
+        { __lhs = static_cast<_RHS&&>(__rhs) } -> same_as<_LHS>;
     };
 
 namespace __swap
@@ -200,7 +200,7 @@
 template <class _Ty, class _Uy>
 concept swappable_with =             //
     requires(_Ty&& __t, _Uy&& __u) { //
-        swap(static_cast<_Ty &&>(__t), static_cast<_Uy &&>(__u));
+        swap(static_cast<_Ty&&>(__t), static_cast<_Uy&&>(__u));
     };
 
 inline constexpr const auto __fn =                               //
@@ -273,7 +273,7 @@
 concept __nothrow_movable_value = //
     __movable_value<_Ty> &&       //
     requires(_Ty&& __t) {
-        { __decay_t<_Ty>{__decay_t<_Ty>{static_cast<_Ty &&>(__t)}} } noexcept;
+        { __decay_t<_Ty>{__decay_t<_Ty>{static_cast<_Ty&&>(__t)}} } noexcept;
     };
 
 template <class _Ty, class... _As>
diff --git a/include/sdbusplus/async/stdexec/__detail/__connect_awaitable.hpp b/include/sdbusplus/async/stdexec/__detail/__connect_awaitable.hpp
index 63061d7..a38dcb5 100644
--- a/include/sdbusplus/async/stdexec/__detail/__connect_awaitable.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__connect_awaitable.hpp
@@ -208,9 +208,8 @@
 #if STDEXEC_GCC() && (__GNUC__ > 11)
     __attribute__((__used__))
 #endif
-    static auto
-        __co_impl(_Awaitable __awaitable, _Receiver __rcvr)
-            -> __operation_t<_Receiver>
+    static auto __co_impl(_Awaitable __awaitable, _Receiver __rcvr)
+        -> __operation_t<_Receiver>
     {
         using __result_t = __await_result_t<_Awaitable, __promise_t<_Receiver>>;
         std::exception_ptr __eptr;
diff --git a/include/sdbusplus/async/stdexec/__detail/__domain.hpp b/include/sdbusplus/async/stdexec/__detail/__domain.hpp
index bfe1e72..0798479 100644
--- a/include/sdbusplus/async/stdexec/__detail/__domain.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__domain.hpp
@@ -58,7 +58,7 @@
 template <class _DomainOrTag, class _Sender, class... _Env>
 concept __has_transform_sender =
     requires(_DomainOrTag __tag, _Sender&& __sender, const _Env&... __env) {
-        __tag.transform_sender(static_cast<_Sender &&>(__sender), __env...);
+        __tag.transform_sender(static_cast<_Sender&&>(__sender), __env...);
     };
 
 template <class _Sender, class... _Env>
@@ -69,8 +69,8 @@
 template <class _Type, class _Sender, class _Env>
 concept __has_transform_env =
     requires(_Type __obj, _Sender&& __sender, _Env&& __env) {
-        __obj.transform_env(static_cast<_Sender &&>(__sender),
-                            static_cast<_Env &&>(__env));
+        __obj.transform_env(static_cast<_Sender&&>(__sender),
+                            static_cast<_Env&&>(__env));
     };
 
 template <class _Sender, class _Env>
@@ -81,7 +81,7 @@
 template <class _DomainOrTag, class... _Args>
 concept __has_apply_sender =
     requires(_DomainOrTag __tag, _Args&&... __args) {
-        __tag.apply_sender(static_cast<_Args &&>(__args)...);
+        __tag.apply_sender(static_cast<_Args&&>(__args)...);
     };
 
 template <class _Sender>
diff --git a/include/sdbusplus/async/stdexec/__detail/__meta.hpp b/include/sdbusplus/async/stdexec/__detail/__meta.hpp
index 3433996..045536c 100644
--- a/include/sdbusplus/async/stdexec/__detail/__meta.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__meta.hpp
@@ -1253,7 +1253,7 @@
     constexpr decltype(auto) operator()(_Ts&&... __ts) const noexcept
     {
         static_assert(_Np < sizeof...(_Ts));
-        return static_cast<_Ts...[_Np] &&>(__ts...[_Np]);
+        return static_cast<_Ts...[_Np]&&>(__ts...[_Np]);
     }
 };
 #else
diff --git a/include/sdbusplus/async/stdexec/__detail/__ranges.hpp b/include/sdbusplus/async/stdexec/__detail/__ranges.hpp
index f584013..e98513e 100644
--- a/include/sdbusplus/async/stdexec/__detail/__ranges.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__ranges.hpp
@@ -46,21 +46,21 @@
 
 template <class _Ty>
 concept __has_member_begin =
-    requires(_Ty&& __v) { static_cast<_Ty &&>(__v).begin(); };
+    requires(_Ty&& __v) { static_cast<_Ty&&>(__v).begin(); };
 
 template <class _Ty>
 concept __has_free_begin =
     __has_member_begin<_Ty> ||
-    requires(_Ty&& __v) { begin((static_cast<_Ty &&>(__v))); };
+    requires(_Ty&& __v) { begin((static_cast<_Ty&&>(__v))); };
 
 template <class _Ty>
 concept __has_member_end =
-    requires(_Ty&& __v) { static_cast<_Ty &&>(__v).end(); };
+    requires(_Ty&& __v) { static_cast<_Ty&&>(__v).end(); };
 
 template <class _Ty>
 concept __has_free_end =
     __has_member_end<_Ty> ||
-    requires(_Ty&& __v) { end((static_cast<_Ty &&>(__v))); };
+    requires(_Ty&& __v) { end((static_cast<_Ty&&>(__v))); };
 
 struct __begin_t
 {
diff --git a/include/sdbusplus/async/stdexec/__detail/__schedulers.hpp b/include/sdbusplus/async/stdexec/__detail/__schedulers.hpp
index 1883ce3..bb0c4aa 100644
--- a/include/sdbusplus/async/stdexec/__detail/__schedulers.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__schedulers.hpp
@@ -67,7 +67,7 @@
 template <class _Scheduler>
 concept __has_schedule = //
     requires(_Scheduler&& __sched) {
-        { schedule(static_cast<_Scheduler &&>(__sched)) } -> sender;
+        { schedule(static_cast<_Scheduler&&>(__sched)) } -> sender;
     };
 
 template <class _Scheduler>
@@ -75,7 +75,7 @@
     requires(_Scheduler&& __sched) {
         {
             stdexec::__decay_copy(get_completion_scheduler<set_value_t>(
-                get_env(schedule(static_cast<_Scheduler &&>(__sched)))))
+                get_env(schedule(static_cast<_Scheduler&&>(__sched)))))
         } -> same_as<__decay_t<_Scheduler>>;
     };
 
diff --git a/include/sdbusplus/async/stdexec/__detail/__senders.hpp b/include/sdbusplus/async/stdexec/__detail/__senders.hpp
index 5de057f..16218cf 100644
--- a/include/sdbusplus/async/stdexec/__detail/__senders.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__senders.hpp
@@ -379,8 +379,8 @@
     && sender_in<_Sender, env_of_t<_Receiver>> //
     && __receiver_from<_Receiver, _Sender>     //
     && requires(_Sender&& __sndr, _Receiver&& __rcvr) {
-           connect(static_cast<_Sender &&>(__sndr),
-                   static_cast<_Receiver &&>(__rcvr));
+           connect(static_cast<_Sender&&>(__sndr),
+                   static_cast<_Receiver&&>(__rcvr));
        };
 
 template <class _Tag, class... _Args>
diff --git a/include/sdbusplus/async/stdexec/__detail/__senders_core.hpp b/include/sdbusplus/async/stdexec/__detail/__senders_core.hpp
index 3188f05..e711b06 100644
--- a/include/sdbusplus/async/stdexec/__detail/__senders_core.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__senders_core.hpp
@@ -61,8 +61,8 @@
     && sender<_Sender>     //
     && requires(_Sender&& __sndr, _Env&&... __env) {
            {
-               get_completion_signatures(static_cast<_Sender &&>(__sndr),
-                                         static_cast<_Env &&>(__env)...)
+               get_completion_signatures(static_cast<_Sender&&>(__sndr),
+                                         static_cast<_Env&&>(__env)...)
            } -> __valid_completion_signatures;
        };
 } // namespace stdexec
diff --git a/include/sdbusplus/async/stdexec/__detail/__tag_invoke.hpp b/include/sdbusplus/async/stdexec/__detail/__tag_invoke.hpp
index 593a607..1c41200 100644
--- a/include/sdbusplus/async/stdexec/__detail/__tag_invoke.hpp
+++ b/include/sdbusplus/async/stdexec/__detail/__tag_invoke.hpp
@@ -26,7 +26,7 @@
 template <class _Fun, class... _As>
 concept invocable = //
     requires(_Fun&& __f, _As&&... __as) {
-        std::invoke(static_cast<_Fun &&>(__f), static_cast<_As &&>(__as)...);
+        std::invoke(static_cast<_Fun&&>(__f), static_cast<_As&&>(__as)...);
     };
 #endif
 } // namespace stdexec::__std_concepts
@@ -67,16 +67,15 @@
 template <class _Tag, class... _Args>
 concept tag_invocable = //
     requires(_Tag __tag, _Args&&... __args) {
-        tag_invoke(static_cast<_Tag &&>(__tag),
-                   static_cast<_Args &&>(__args)...);
+        tag_invoke(static_cast<_Tag&&>(__tag), static_cast<_Args&&>(__args)...);
     };
 
 template <class _Ret, class _Tag, class... _Args>
 concept __tag_invocable_r = //
     requires(_Tag __tag, _Args&&... __args) {
         {
-            static_cast<_Ret>(tag_invoke(static_cast<_Tag &&>(__tag),
-                                         static_cast<_Args &&>(__args)...))
+            static_cast<_Ret>(tag_invoke(static_cast<_Tag&&>(__tag),
+                                         static_cast<_Args&&>(__args)...))
         };
     };
 
@@ -86,8 +85,8 @@
     tag_invocable<_Tag, _Args...> && //
     requires(_Tag __tag, _Args&&... __args) {
         {
-            tag_invoke(static_cast<_Tag &&>(__tag),
-                       static_cast<_Args &&>(__args)...)
+            tag_invoke(static_cast<_Tag&&>(__tag),
+                       static_cast<_Args&&>(__args)...)
         } noexcept;
     };
 
diff --git a/include/sdbusplus/async/stdexec/functional.hpp b/include/sdbusplus/async/stdexec/functional.hpp
index 6b47e4f..b39bbaa 100644
--- a/include/sdbusplus/async/stdexec/functional.hpp
+++ b/include/sdbusplus/async/stdexec/functional.hpp
@@ -241,7 +241,7 @@
 template <class _Fun, class... _As>
 concept __invocable = //
     requires(_Fun&& __f, _As&&... __as) {
-        __invoke(static_cast<_Fun &&>(__f), static_cast<_As &&>(__as)...);
+        __invoke(static_cast<_Fun&&>(__f), static_cast<_As&&>(__as)...);
     };
 
 template <class _Fun, class... _As>
@@ -249,7 +249,7 @@
     __invocable<_Fun, _As...> && //
     requires(_Fun&& __f, _As&&... __as) {
         {
-            __invoke(static_cast<_Fun &&>(__f), static_cast<_As &&>(__as)...)
+            __invoke(static_cast<_Fun&&>(__f), static_cast<_As&&>(__as)...)
         } noexcept;
     };
 
diff --git a/include/sdbusplus/async/stdexec/sequence_senders.hpp b/include/sdbusplus/async/stdexec/sequence_senders.hpp
index 47dd728..012779f 100644
--- a/include/sdbusplus/async/stdexec/sequence_senders.hpp
+++ b/include/sdbusplus/async/stdexec/sequence_senders.hpp
@@ -247,8 +247,8 @@
 template <class _Sender, class... _Env>
 concept has_sequence_item_types =
     requires(_Sender&& __sndr, _Env&&... __env) {
-        get_item_types(static_cast<_Sender &&>(__sndr),
-                       static_cast<_Env &&>(__env)...);
+        get_item_types(static_cast<_Sender&&>(__sndr),
+                       static_cast<_Env&&>(__env)...);
     };
 
 template <class _Sender, class... _Env>
@@ -499,8 +499,8 @@
 concept sequence_sender_to =
     sequence_receiver_from<_Receiver, _Sender> && //
     requires(_Sender&& __sndr, _Receiver&& __rcvr) {
-        subscribe(static_cast<_Sender &&>(__sndr),
-                  static_cast<_Receiver &&>(__rcvr));
+        subscribe(static_cast<_Sender&&>(__sndr),
+                  static_cast<_Receiver&&>(__rcvr));
     };
 
 template <class _Receiver>