clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: If152304b21dd2daaa2f79255a4f98218615efb05
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/control/json/actions/action.hpp b/control/json/actions/action.hpp
index 93cd9e2..6cc5bac 100644
--- a/control/json/actions/action.hpp
+++ b/control/json/actions/action.hpp
@@ -82,9 +82,9 @@
* sets the zones the action should run against.
*/
template <typename T>
-std::unique_ptr<T>
- createAction(const json& jsonObj, const std::vector<Group>& groups,
- std::vector<std::reference_wrapper<Zone>>& zones)
+std::unique_ptr<T> createAction(
+ const json& jsonObj, const std::vector<Group>& groups,
+ std::vector<std::reference_wrapper<Zone>>& zones)
{
// Create the action and set its list of zones
auto action = std::make_unique<T>(jsonObj, groups);
@@ -319,10 +319,10 @@
*
* @return Pointer to the action object.
*/
- static std::unique_ptr<ActionBase>
- getAction(const std::string& name, const json& jsonObj,
- const std::vector<Group>& groups,
- std::vector<std::reference_wrapper<Zone>>&& zones)
+ static std::unique_ptr<ActionBase> getAction(
+ const std::string& name, const json& jsonObj,
+ const std::vector<Group>& groups,
+ std::vector<std::reference_wrapper<Zone>>&& zones)
{
auto it = actions.find(name);
if (it != actions.end())
diff --git a/control/json/actions/mapped_floor.cpp b/control/json/actions/mapped_floor.cpp
index ab50075..7cad6a4 100644
--- a/control/json/actions/mapped_floor.cpp
+++ b/control/json/actions/mapped_floor.cpp
@@ -242,8 +242,8 @@
value);
}
-std::optional<PropertyVariantType>
- MappedFloor::getMaxGroupValue(const Group& group)
+std::optional<PropertyVariantType> MappedFloor::getMaxGroupValue(
+ const Group& group)
{
std::optional<PropertyVariantType> max;
bool checked = false;
diff --git a/control/json/actions/pcie_card_floors.hpp b/control/json/actions/pcie_card_floors.hpp
index 081f409..e7c21a3 100644
--- a/control/json/actions/pcie_card_floors.hpp
+++ b/control/json/actions/pcie_card_floors.hpp
@@ -142,8 +142,8 @@
* - The floor index or true for has temp sensor if found,
* std::nullopt else.
*/
- std::optional<std::variant<int32_t, bool>>
- getFloorIndexFromSlot(const std::string& slotPath);
+ std::optional<std::variant<int32_t, bool>> getFloorIndexFromSlot(
+ const std::string& slotPath);
/**
* @brief Gets the hex PCIeDevice property value from the
diff --git a/control/json/actions/set_parameter_from_group_max.hpp b/control/json/actions/set_parameter_from_group_max.hpp
index ad0114c..61a9836 100644
--- a/control/json/actions/set_parameter_from_group_max.hpp
+++ b/control/json/actions/set_parameter_from_group_max.hpp
@@ -63,8 +63,8 @@
SetParameterFromGroupMax() = delete;
SetParameterFromGroupMax(const SetParameterFromGroupMax&) = delete;
SetParameterFromGroupMax(SetParameterFromGroupMax&&) = delete;
- SetParameterFromGroupMax&
- operator=(const SetParameterFromGroupMax&) = delete;
+ SetParameterFromGroupMax& operator=(const SetParameterFromGroupMax&) =
+ delete;
SetParameterFromGroupMax& operator=(SetParameterFromGroupMax&&) = delete;
virtual ~SetParameterFromGroupMax() = default;
diff --git a/control/json/actions/timer_based_actions.hpp b/control/json/actions/timer_based_actions.hpp
index c36ecf6..12e6198 100644
--- a/control/json/actions/timer_based_actions.hpp
+++ b/control/json/actions/timer_based_actions.hpp
@@ -111,8 +111,8 @@
*
* Sets the zones on this action and the timer's actions to run against
*/
- virtual void
- setZones(std::vector<std::reference_wrapper<Zone>>& zones) override;
+ virtual void setZones(
+ std::vector<std::reference_wrapper<Zone>>& zones) override;
private:
/* The timer for this action */