clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ic2bc1d98d8ad469a3477f9059ec890fc8339907d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tests/src/test_trigger_manager.cpp b/tests/src/test_trigger_manager.cpp
index 3204b19..f425350 100644
--- a/tests/src/test_trigger_manager.cpp
+++ b/tests/src/test_trigger_manager.cpp
@@ -19,8 +19,8 @@
{
public:
TriggerParams triggerParams;
- std::pair<boost::system::error_code, std::string>
- addTrigger(const TriggerParams& params)
+ std::pair<boost::system::error_code, std::string> addTrigger(
+ const TriggerParams& params)
{
const auto sensorInfos =
utils::fromLabeledSensorsInfo(params.sensors());
@@ -38,14 +38,15 @@
DbusEnvironment::getBus()->async_method_call(
[&addTriggerPromise](boost::system::error_code ec,
const std::string& path) {
- addTriggerPromise.set_value({ec, path});
- },
+ addTriggerPromise.set_value({ec, path});
+ },
DbusEnvironment::serviceName(), TriggerManager::triggerManagerPath,
TriggerManager::triggerManagerIfaceName, "AddTrigger", params.id(),
params.name(),
- utils::transform(
- params.triggerActions(),
- [](const auto& action) { return actionToString(action); }),
+ utils::transform(params.triggerActions(),
+ [](const auto& action) {
+ return actionToString(action);
+ }),
sensorInfos, params.reports(), numThresh2, discThresh2);
return DbusEnvironment::waitForFuture(addTriggerPromise.get_future());
}
@@ -393,8 +394,8 @@
EXPECT_THAT(ec.value(), Eq(boost::system::errc::success));
}
- triggerParams.id(TriggerParams().id() +
- std::to_string(TriggerManager::maxTriggers));
+ triggerParams.id(
+ TriggerParams().id() + std::to_string(TriggerManager::maxTriggers));
auto [ec, path] = addTrigger(triggerParams);
EXPECT_THAT(ec.value(), Eq(boost::system::errc::too_many_files_open));
EXPECT_THAT(path, Eq(std::string()));
@@ -473,8 +474,8 @@
TriggerParams().thresholdParams().index()},
{"TriggerActions", utils::transform(TriggerParams().triggerActions(),
[](const auto& action) {
- return actionToString(action);
- })},
+ return actionToString(action);
+ })},
{"ThresholdParams", utils::labeledThresholdParamsToJson(
TriggerParams().thresholdParams())},
{"ReportIds", TriggerParams().reportIds()},