clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Id513ba4699f994d5bc2a8480c4a0b2659e9480ce
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dbus/dbusutil.hpp b/dbus/dbusutil.hpp
index 49ec859..ff606a4 100644
--- a/dbus/dbusutil.hpp
+++ b/dbus/dbusutil.hpp
@@ -14,15 +14,15 @@
struct VariantToDoubleVisitor
{
template <typename T>
- std::enable_if_t<std::is_arithmetic<T>::value, double>
- operator()(const T& t) const
+ std::enable_if_t<std::is_arithmetic<T>::value, double> operator()(
+ const T& t) const
{
return static_cast<double>(t);
}
template <typename T>
- std::enable_if_t<!std::is_arithmetic<T>::value, double>
- operator()([[maybe_unused]] const T& t) const
+ std::enable_if_t<!std::is_arithmetic<T>::value, double> operator()(
+ [[maybe_unused]] const T& t) const
{
throw std::invalid_argument("Cannot translate type to double");
}