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/IntelCPUSensorMain.cpp b/src/IntelCPUSensorMain.cpp
index 011f2fb..9e48184 100644
--- a/src/IntelCPUSensorMain.cpp
+++ b/src/IntelCPUSensorMain.cpp
@@ -291,8 +291,8 @@
std::cerr << "could not determine CPU ID for " << hwmonName << "\n";
continue;
}
- int cpuId =
- std::visit(VariantToUnsignedIntVisitor(), findCpuId->second);
+ int cpuId = std::visit(VariantToUnsignedIntVisitor(),
+ findCpuId->second);
auto directory = hwmonNamePath.parent_path();
std::vector<fs::path> inputPaths;
@@ -313,8 +313,8 @@
}
auto& [type, nr, item] = *fileParts;
auto inputPathStr = inputPath.string();
- auto labelPath =
- boost::replace_all_copy(inputPathStr, item, "label");
+ auto labelPath = boost::replace_all_copy(inputPathStr, item,
+ "label");
std::ifstream labelFile(labelPath);
if (!labelFile.good())
{
@@ -672,10 +672,10 @@
{
continue;
}
- std::string nameRaw =
- std::visit(VariantToStringVisitor(), findName->second);
- std::string name =
- std::regex_replace(nameRaw, illegalDbusRegex, "_");
+ std::string nameRaw = std::visit(VariantToStringVisitor(),
+ findName->second);
+ std::string name = std::regex_replace(nameRaw, illegalDbusRegex,
+ "_");
auto present = std::optional<bool>();
// if we can't detect it via gpio, we set presence later
@@ -706,8 +706,8 @@
std::cerr << "Can't find 'Bus' setting in " << name << "\n";
continue;
}
- uint64_t bus =
- std::visit(VariantToUnsignedIntVisitor(), findBus->second);
+ uint64_t bus = std::visit(VariantToUnsignedIntVisitor(),
+ findBus->second);
auto findAddress = cfg.find("Address");
if (findAddress == cfg.end())