clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Iac96affe709a51dd865117d006cb033cf5c624b1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/extensions/openpower-pels/device_callouts.cpp b/extensions/openpower-pels/device_callouts.cpp
index 21c3e3c..f94212a 100644
--- a/extensions/openpower-pels/device_callouts.cpp
+++ b/extensions/openpower-pels/device_callouts.cpp
@@ -156,8 +156,8 @@
return links;
}
-std::tuple<std::string, std::tuple<size_t, uint8_t>>
- getFSII2CSearchKeys(const std::string& devPath)
+std::tuple<std::string, std::tuple<size_t, uint8_t>> getFSII2CSearchKeys(
+ const std::string& devPath)
{
// This combines the FSI and i2C search keys
@@ -327,8 +327,8 @@
*
* @return std::vector<Callout> - The callouts
*/
-std::vector<device_callouts::Callout>
- calloutFSI(const std::string& devPath, const nlohmann::json& calloutJSON)
+std::vector<device_callouts::Callout> calloutFSI(
+ const std::string& devPath, const nlohmann::json& calloutJSON)
{
auto links = getFSISearchKeys(devPath);
@@ -359,8 +359,8 @@
*
* @return std::vector<Callout> - The callouts
*/
-std::vector<device_callouts::Callout>
- calloutFSII2C(const std::string& devPath, const nlohmann::json& calloutJSON)
+std::vector<device_callouts::Callout> calloutFSII2C(
+ const std::string& devPath, const nlohmann::json& calloutJSON)
{
auto linksAndI2C = getFSII2CSearchKeys(devPath);
auto links = std::get<std::string>(linksAndI2C);
@@ -405,8 +405,8 @@
*
* @return std::vector<Callout> - The callouts
*/
-std::vector<device_callouts::Callout>
- calloutFSISPI(const std::string& devPath, const nlohmann::json& calloutJSON)
+std::vector<device_callouts::Callout> calloutFSISPI(
+ const std::string& devPath, const nlohmann::json& calloutJSON)
{
auto linksAndSPI = getFSISPISearchKeys(devPath);
auto links = std::get<std::string>(linksAndSPI);
@@ -445,8 +445,8 @@
*
* @return std::vector<Callout> - The list of callouts
*/
-std::vector<device_callouts::Callout>
- findCallouts(const std::string& devPath, const nlohmann::json& json)
+std::vector<device_callouts::Callout> findCallouts(const std::string& devPath,
+ const nlohmann::json& json)
{
std::vector<Callout> callouts;
fs::path path;
@@ -523,9 +523,9 @@
return util::findCallouts(devPath, json);
}
-std::vector<Callout>
- getI2CCallouts(size_t i2cBus, uint8_t i2cAddress,
- const std::vector<std::string>& compatibleList)
+std::vector<Callout> getI2CCallouts(
+ size_t i2cBus, uint8_t i2cAddress,
+ const std::vector<std::string>& compatibleList)
{
auto json = util::loadJSON(compatibleList);
return util::calloutI2C(i2cBus, i2cAddress, json);