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/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index a827a44..053de6f 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -459,11 +459,11 @@
if (!firstScan)
{
std::string psuNameStr = "/" + escapeName(*psuName);
- auto it =
- std::find_if(sensorsChanged->begin(), sensorsChanged->end(),
- [psuNameStr](std::string& s) {
+ auto it = std::find_if(sensorsChanged->begin(),
+ sensorsChanged->end(),
+ [psuNameStr](std::string& s) {
return s.ends_with(psuNameStr);
- });
+ });
if (it == sensorsChanged->end())
{
@@ -544,12 +544,11 @@
size_t pos = sensorPathStr.find('_');
if (pos != std::string::npos)
{
-
std::string sensorPathStrMax = sensorPathStr.substr(pos);
if (sensorPathStrMax == "_max")
{
- labelPath =
- boost::replace_all_copy(sensorPathStr, "max", "label");
+ labelPath = boost::replace_all_copy(sensorPathStr, "max",
+ "label");
maxLabel = true;
}
else
@@ -872,8 +871,8 @@
{
// Sensor name not customized, do prefix/suffix composition,
// preserving default behavior by using psuNameFromIndex.
- sensorName =
- psuNameFromIndex + " " + psuProperty->labelTypeName;
+ sensorName = psuNameFromIndex + " " +
+ psuProperty->labelTypeName;
}
if constexpr (debug)