clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I9bb0aaa05541fe88ccabfaa5d00e3117e489ea8d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/callback.hpp b/src/callback.hpp
index 0295246..7d23077 100644
--- a/src/callback.hpp
+++ b/src/callback.hpp
@@ -48,7 +48,7 @@
* @param[in] msg - The sdbusplus signal message
*/
virtual void operator()(Context /* ctx */,
- sdbusplus::message_t& /* msg */){};
+ sdbusplus::message_t& /* msg */) {};
};
/** @class Conditional
@@ -171,9 +171,7 @@
ConditionalCallback& operator=(ConditionalCallback&&) = default;
virtual ~ConditionalCallback() = default;
ConditionalCallback(const std::vector<size_t>& graphEntry,
- Conditional& cond) :
- graph(graphEntry),
- condition(cond)
+ Conditional& cond) : graph(graphEntry), condition(cond)
{}
/** @brief Run the callback if the condition is satisfied. */
@@ -235,14 +233,14 @@
{
if (!timer)
{
- timer =
- std::make_unique<TimerType>(sdeventplus::Event::get_default(),
- // **INDENT-OFF**
- [this](auto& /* source */) {
- // The timer uses the context saved on timer enable
- this->ConditionalCallback<CallbackAccess>::operator()(
- this->ctx);
- });
+ timer = std::make_unique<TimerType>(
+ sdeventplus::Event::get_default(),
+ // **INDENT-OFF**
+ [this](auto& /* source */) {
+ // The timer uses the context saved on timer enable
+ this->ConditionalCallback<CallbackAccess>::operator()(
+ this->ctx);
+ });
// **INDENT-ON**
}