clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I0d10afa582342818b9d90b168f6f39f71ce4e0f4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
[AJ: regenerate using .clang-format from openbmc/docs@f44abd66eca8]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/src/Thresholds.cpp b/src/Thresholds.cpp
index b751c67..d2811f3 100644
--- a/src/Thresholds.cpp
+++ b/src/Thresholds.cpp
@@ -93,8 +93,8 @@
auto hysteresisFind = cfg.find("Hysteresis");
if (hysteresisFind != cfg.end())
{
- hysteresis =
- std::visit(VariantToDoubleVisitor(), hysteresisFind->second);
+ hysteresis = std::visit(VariantToDoubleVisitor(),
+ hysteresisFind->second);
}
auto directionFind = cfg.find("Direction");
@@ -107,11 +107,11 @@
<< intf << "\n";
return false;
}
- unsigned int severity =
- std::visit(VariantToUnsignedIntVisitor(), severityFind->second);
+ unsigned int severity = std::visit(VariantToUnsignedIntVisitor(),
+ severityFind->second);
- std::string directions =
- std::visit(VariantToStringVisitor(), directionFind->second);
+ std::string directions = std::visit(VariantToStringVisitor(),
+ directionFind->second);
Level level = findThresholdLevel(severity);
Direction direction = findThresholdDirection(directions);
@@ -134,8 +134,8 @@
{
for (size_t ii = 0; ii < thresholdCount; ii++)
{
- std::string thresholdInterface =
- baseInterface + ".Thresholds" + std::to_string(ii);
+ std::string thresholdInterface = baseInterface + ".Thresholds" +
+ std::to_string(ii);
conn->async_method_call(
[&, path, threshold, thresholdInterface,
labelMatch](const boost::system::error_code& ec,
@@ -153,8 +153,8 @@
std::cerr << "No label in threshold configuration\n";
return;
}
- std::string label =
- std::visit(VariantToStringVisitor(), labelFind->second);
+ std::string label = std::visit(VariantToStringVisitor(),
+ labelFind->second);
if (label != labelMatch)
{
return;
@@ -170,11 +170,11 @@
std::cerr << "Malformed threshold in configuration\n";
return;
}
- unsigned int severity =
- std::visit(VariantToUnsignedIntVisitor(), severityFind->second);
+ unsigned int severity = std::visit(VariantToUnsignedIntVisitor(),
+ severityFind->second);
- std::string dir =
- std::visit(VariantToStringVisitor(), directionFind->second);
+ std::string dir = std::visit(VariantToStringVisitor(),
+ directionFind->second);
if ((findThresholdLevel(severity) != threshold.level) ||
(findThresholdDirection(dir) != threshold.direction))
{
@@ -209,8 +209,8 @@
continue;
}
- std::string property =
- Sensor::propertyLevel(threshold.level, threshold.direction);
+ std::string property = Sensor::propertyLevel(threshold.level,
+ threshold.direction);
if (property.empty())
{
continue;
@@ -506,8 +506,8 @@
for (const auto& t : map.at(item))
{
const auto& [suffix, level, direction, offset] = t;
- auto attrPath =
- boost::replace_all_copy(inputPath, item, suffix);
+ auto attrPath = boost::replace_all_copy(inputPath, item,
+ suffix);
if (auto val = readFile(attrPath, scaleFactor))
{
*val += offset;