clang updates
The openbmc CI was recently updated to clang-12 which requires some
formatting updates to the code:
https://github.com/openbmc/openbmc-build-scripts/commit/4569bf49daaebff06be0482426908bb5497fad08
Make those updates and refresh the clang-format file with the one from
docs:
https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
Change-Id: Ieb3626526373a053ec84431e7560003f229f338d
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/phosphor-power-supply/psu_manager.cpp b/phosphor-power-supply/psu_manager.cpp
index 93d1415..603c0ef 100644
--- a/phosphor-power-supply/psu_manager.cpp
+++ b/phosphor-power-supply/psu_manager.cpp
@@ -126,8 +126,7 @@
}
}
catch (std::exception& e)
- {
- }
+ {}
}
if ((i2cbus) && (i2caddr) && (psuname) && (!psuname->empty()))
@@ -223,8 +222,7 @@
supportedConfigs.emplace(*model, sys);
}
catch (std::exception& e)
- {
- }
+ {}
}
void PSUManager::getSystemProperties()
diff --git a/phosphor-power-supply/test/power_supply_tests.cpp b/phosphor-power-supply/test/power_supply_tests.cpp
index b298d6c..19d5203 100644
--- a/phosphor-power-supply/test/power_supply_tests.cpp
+++ b/phosphor-power-supply/test/power_supply_tests.cpp
@@ -251,8 +251,7 @@
psu.onOffConfig(data);
}
catch (...)
- {
- }
+ {}
// Test where PSU is present
try
@@ -273,8 +272,7 @@
psu.onOffConfig(data);
}
catch (...)
- {
- }
+ {}
}
TEST_F(PowerSupplyTests, ClearFaults)