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: I0a1783b101aa4e7d4b80fd5e1fc1b2beb86c5caa
diff --git a/util.cpp b/util.cpp
index 2540fe9..95e4d12 100644
--- a/util.cpp
+++ b/util.cpp
@@ -14,17 +14,18 @@
#include "util.hpp"
+#include <nlohmann/json.hpp>
+#include <phosphor-logging/elog-errors.hpp>
+#include <xyz/openbmc_project/Common/error.hpp>
+
#include <cstdint>
#include <cstdio>
#include <filesystem>
#include <fstream>
-#include <nlohmann/json.hpp>
-#include <phosphor-logging/elog-errors.hpp>
#include <regex>
#include <string>
#include <tuple>
#include <vector>
-#include <xyz/openbmc_project/Common/error.hpp>
namespace google
{
@@ -71,7 +72,7 @@
// If the last character is a null terminator; remove it.
if (!contents.empty())
{
- char const& back = contents.back();
+ const char& back = contents.back();
if (back == '\0')
contents.pop_back();
}