clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Id2036ab746164981596b3ee36259f3ca5d3f1334
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/biosxml.hpp b/include/biosxml.hpp
index 8881fdf..1e69454 100644
--- a/include/biosxml.hpp
+++ b/include/biosxml.hpp
@@ -92,8 +92,7 @@
std::string descriptionStr, std::string defaultStr,
std::string promptStr, std::string depexStr,
std::string& setupTypeStr) :
- depex(false),
- readOnly(("ReadOnly" == setupTypeStr) ? true : false),
+ depex(false), readOnly(("ReadOnly" == setupTypeStr) ? true : false),
currentVal(currentVal), nameStr(std::move(nameStr)),
currentValStr(std::move(currentValStr)),
descriptionStr(std::move(descriptionStr)),
@@ -177,8 +176,8 @@
{
return !s.empty() &&
std::find_if(s.begin(), s.end(), [](unsigned char c) {
- return !std::isdigit(c);
- }) == s.end();
+ return !std::isdigit(c);
+ }) == s.end();
}
/* Returns 'true' if the argument string is hex representation of a number.
@@ -203,8 +202,8 @@
}
}
- std::string error = "Unable to find knob: " + variableName +
- " in knob list\n";
+ std::string error =
+ "Unable to find knob: " + variableName + " in knob list\n";
phosphor::logging::log<phosphor::logging::level::ERR>(error.c_str());
return false;
@@ -676,8 +675,8 @@
{
if (!getKnobs(filePath))
{
- std::string error = "Unable to get knobs in file: " +
- std::string(filePath);
+ std::string error =
+ "Unable to get knobs in file: " + std::string(filePath);
throw std::runtime_error(error);
}
}